update EntryHeading styles

This commit is contained in:
Abhinav 2022-06-19 16:32:14 +05:30
parent 6b9ed0c622
commit 0138873881

View file

@ -3,22 +3,22 @@ import { Typography } from '@mui/material';
import watchService from 'services/watchFolderService';
import { AppContext } from 'pages/_app';
import { SyncProgressIcon } from './syncProgressIcon';
import { FlexWrapper } from 'components/Container';
export function EntryHeading({ mapping }) {
const appContext = useContext(AppContext);
return (
<FlexWrapper sx={{ marginBottom: '4px' }}>
<Typography
sx={{
fontSize: '16px',
lineHeight: '20px',
marginBottom: '4px',
}}>
<>
{mapping.collectionName}
</Typography>
{appContext.isFolderSyncRunning &&
watchService.currentEvent?.collectionName ===
mapping.collectionName && <SyncProgressIcon />}
</>
</Typography>
</FlexWrapper>
);
}