Skip to content

Commit

Permalink
basic styling for Changed
Browse files Browse the repository at this point in the history
  • Loading branch information
lukarenko committed Dec 25, 2021
1 parent 555892b commit 9bec727
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/components/DoctorCard/PageInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,6 @@ const PageInfo = function PageInfo({ doctor, isReportError }) {
</Shared.ConditionalLink>
</Styled.PageInfo.LinkWrapper>
)}
{doctor.updatedAt && (
<p>
{t('changedOn')}
{doctor.formatUpdatedAt(lng)}
</p>
)}
{doctor.note && <p>{doctor.note}</p>}

<Stack sx={{ mt: { md: 2 } }}>
<Stack direction="row" alignItems="center" spacing={1}>
Expand Down Expand Up @@ -164,6 +157,12 @@ const PageInfo = function PageInfo({ doctor, isReportError }) {
</Tooltip>
</Stack>
</Stack>

<Styled.PageInfo.Changed>
{doctor.updatedAt && `${t('changedOn')}${doctor.formatUpdatedAt(lng)}`}
{doctor.note && <p>{doctor.note}</p>}
</Styled.PageInfo.Changed>

{message && (
<Alert sx={{ marginTop: '1rem' }} severity="success">
{message}
Expand Down
8 changes: 8 additions & 0 deletions src/components/DoctorCard/styles/PageInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,11 @@ export const BackWrapper = styled(Stack)(() => ({
fontWeight: 600,
},
}));

export const Changed = styled(Stack)(() => ({
fontSize: '0.875rem',
fontWeight: 700,
letterSpacing: 0,
color: 'inherit',
whiteSpace: 'nowrap',
}));

0 comments on commit 9bec727

Please sign in to comment.