Skip to content

Commit a598471

Browse files
committed
Update PatientApps layout to form a grid pattern
1 parent 562c332 commit a598471

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import styled from 'styled-components';
2+
3+
export const S = {
4+
Container: styled.div`
5+
display: flex;
6+
flex-direction: row;
7+
flex-wrap: wrap;
8+
gap: 24px;
9+
`,
10+
};

src/containers/PatientDetails/PatientApps/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { selectCurrentUserRoleResource } from '@beda.software/emr/dist/utils/rol
88
import { mapSuccess } from '@beda.software/remote-data';
99

1010
import { getLaunchURI, LaunchProps, useSmartApps } from './hooks';
11+
import { S } from './PatientApps.styles';
1112

1213
const { Text } = Typography;
1314

@@ -74,11 +75,11 @@ export function PatientApps({ patient, encounter }: PatientAppsProps) {
7475
return <Text>There are no registered smart apps</Text>;
7576
} else {
7677
return (
77-
<>
78+
<S.Container>
7879
{apps.map((app) => (
7980
<SmartApp key={app.id} app={app} patient={patient} encounter={encounter} />
8081
))}
81-
</>
82+
</S.Container>
8283
);
8384
}
8485
}}

0 commit comments

Comments
 (0)