update EntryHeading styles
This commit is contained in:
parent
6b9ed0c622
commit
0138873881
|
@ -3,22 +3,22 @@ import { Typography } from '@mui/material';
|
||||||
import watchService from 'services/watchFolderService';
|
import watchService from 'services/watchFolderService';
|
||||||
import { AppContext } from 'pages/_app';
|
import { AppContext } from 'pages/_app';
|
||||||
import { SyncProgressIcon } from './syncProgressIcon';
|
import { SyncProgressIcon } from './syncProgressIcon';
|
||||||
|
import { FlexWrapper } from 'components/Container';
|
||||||
|
|
||||||
export function EntryHeading({ mapping }) {
|
export function EntryHeading({ mapping }) {
|
||||||
const appContext = useContext(AppContext);
|
const appContext = useContext(AppContext);
|
||||||
return (
|
return (
|
||||||
|
<FlexWrapper sx={{ marginBottom: '4px' }}>
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
fontSize: '16px',
|
fontSize: '16px',
|
||||||
lineHeight: '20px',
|
lineHeight: '20px',
|
||||||
marginBottom: '4px',
|
|
||||||
}}>
|
}}>
|
||||||
<>
|
|
||||||
{mapping.collectionName}
|
{mapping.collectionName}
|
||||||
|
</Typography>
|
||||||
{appContext.isFolderSyncRunning &&
|
{appContext.isFolderSyncRunning &&
|
||||||
watchService.currentEvent?.collectionName ===
|
watchService.currentEvent?.collectionName ===
|
||||||
mapping.collectionName && <SyncProgressIcon />}
|
mapping.collectionName && <SyncProgressIcon />}
|
||||||
</>
|
</FlexWrapper>
|
||||||
</Typography>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue