style(striker-ui): re-run prettier across all sources

main
Tsu-ba-me 3 years ago
parent 8c60aaaf5f
commit 072680f9b3
  1. 4
      striker-ui/components/AnvilDrawer.tsx
  2. 8
      striker-ui/components/Anvils/Anvil.tsx
  3. 6
      striker-ui/components/Anvils/AnvilList.tsx
  4. 4
      striker-ui/components/Bars/AllocationBar.tsx
  5. 4
      striker-ui/components/Bars/ProgressBar.tsx
  6. 6
      striker-ui/components/Decorator.tsx
  7. 6
      striker-ui/components/Display/FullSize.tsx
  8. 4
      striker-ui/components/Domain.tsx
  9. 4
      striker-ui/components/FileSystem/FileSystemsHost.tsx
  10. 6
      striker-ui/components/Files/FileInfo.tsx
  11. 8
      striker-ui/components/Files/FileList.tsx
  12. 7
      striker-ui/components/Hosts/AnvilHost.tsx
  13. 11
      striker-ui/components/MessageBox.tsx
  14. 6
      striker-ui/components/Network/Network.tsx
  15. 6
      striker-ui/components/Panels/InnerPanel.tsx
  16. 4
      striker-ui/components/Panels/InnerPanelHeader.tsx
  17. 4
      striker-ui/components/Panels/Panel.tsx
  18. 34
      striker-ui/components/Resource/ResourceVolumes.tsx
  19. 4
      striker-ui/components/Resource/index.tsx
  20. 20
      striker-ui/components/Servers.tsx
  21. 11
      striker-ui/components/SharedStorage/SharedStorageHost.tsx
  22. 4
      striker-ui/components/Spinner.tsx
  23. 6
      striker-ui/components/Text/HeaderText.tsx
  24. 6
      striker-ui/lib/consts/UPLOAD_FILE_TYPES.ts
  25. 4
      striker-ui/lib/create_emotion_cache/createEmotionCache.ts
  26. 5
      striker-ui/lib/fetchers/fetchJSON.ts
  27. 5
      striker-ui/lib/fetchers/putFetch.ts
  28. 7
      striker-ui/lib/sanitizers/hostsSanitizer.ts
  29. 4
      striker-ui/pages/_app.tsx
  30. 4
      striker-ui/pages/file-manager/index.tsx

@ -45,8 +45,7 @@ interface DrawerProps {
setOpen: Dispatch<SetStateAction<boolean>>; setOpen: Dispatch<SetStateAction<boolean>>;
} }
const AnvilDrawer = ({ open, setOpen }: DrawerProps): JSX.Element => { const AnvilDrawer = ({ open, setOpen }: DrawerProps): JSX.Element => (
return (
<StyledDrawer <StyledDrawer
BackdropProps={{ invisible: true }} BackdropProps={{ invisible: true }}
anchor="left" anchor="left"
@ -102,6 +101,5 @@ const AnvilDrawer = ({ open, setOpen }: DrawerProps): JSX.Element => {
</div> </div>
</StyledDrawer> </StyledDrawer>
); );
};
export default AnvilDrawer; export default AnvilDrawer;

@ -1,15 +1,11 @@
import { BodyText } from '../Text'; import { BodyText } from '../Text';
import anvilState from '../../lib/consts/ANVILS'; import anvilState from '../../lib/consts/ANVILS';
const Anvil = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => { const Anvil = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => (
return (
<> <>
<BodyText text={anvil.anvil_name} /> <BodyText text={anvil.anvil_name} />
<BodyText <BodyText text={anvilState.get(anvil.anvil_state) || 'State unavailable'} />
text={anvilState.get(anvil.anvil_state) || 'State unavailable'}
/>
</> </>
); );
};
export default Anvil; export default Anvil;

@ -75,8 +75,7 @@ const AnvilList = ({ list }: { list: AnvilListItem[] }): JSX.Element => {
className={classes.root} className={classes.root}
aria-label="mailbox folders" aria-label="mailbox folders"
> >
{sortAnvils(list).map((anvil) => { {sortAnvils(list).map((anvil) => (
return (
<> <>
<Divider className={classes.divider} /> <Divider className={classes.divider} />
<ListItem <ListItem
@ -95,8 +94,7 @@ const AnvilList = ({ list }: { list: AnvilListItem[] }): JSX.Element => {
</Box> </Box>
</ListItem> </ListItem>
</> </>
); ))}
})}
</List> </List>
</StyledDiv> </StyledDiv>
); );

@ -39,8 +39,7 @@ const StyledDiv = styled('div')(() => ({
const breakpointWarning = 70; const breakpointWarning = 70;
const breakpointAlert = 90; const breakpointAlert = 90;
const AllocationBar = ({ allocated }: { allocated: number }): JSX.Element => { const AllocationBar = ({ allocated }: { allocated: number }): JSX.Element => (
return (
<StyledDiv> <StyledDiv>
<BorderLinearProgress <BorderLinearProgress
classes={{ classes={{
@ -62,6 +61,5 @@ const AllocationBar = ({ allocated }: { allocated: number }): JSX.Element => {
/> />
</StyledDiv> </StyledDiv>
); );
};
export default AllocationBar; export default AllocationBar;

@ -32,8 +32,7 @@ const ProgressBar = ({
progressPercentage, progressPercentage,
}: { }: {
progressPercentage: number; progressPercentage: number;
}): JSX.Element => { }): JSX.Element => (
return (
<StyledDiv> <StyledDiv>
<BorderLinearProgress <BorderLinearProgress
classes={{ classes={{
@ -52,6 +51,5 @@ const ProgressBar = ({
/> />
</StyledDiv> </StyledDiv>
); );
};
export default ProgressBar; export default ProgressBar;

@ -40,8 +40,8 @@ const StyledDiv = styled('div')(() => ({
export type Colours = 'ok' | 'off' | 'error' | 'warning'; export type Colours = 'ok' | 'off' | 'error' | 'warning';
const Decorator = ({ colour }: { colour: Colours }): JSX.Element => { const Decorator = ({ colour }: { colour: Colours }): JSX.Element => (
return <StyledDiv className={classes[colour]} />; <StyledDiv className={classes[colour]} />
}; );
export default Decorator; export default Decorator;

@ -219,8 +219,7 @@ const FullSize = ({
open={Boolean(anchorEl)} open={Boolean(anchorEl)}
onClose={() => setAnchorEl(null)} onClose={() => setAnchorEl(null)}
> >
{keyCombinations.map(({ keys, scans }) => { {keyCombinations.map(({ keys, scans }) => (
return (
<MenuItem <MenuItem
onClick={() => handleSendKeys(scans)} onClick={() => handleSendKeys(scans)}
className={classes.keysItem} className={classes.keysItem}
@ -228,8 +227,7 @@ const FullSize = ({
> >
<Typography variant="subtitle1">{keys}</Typography> <Typography variant="subtitle1">{keys}</Typography>
</MenuItem> </MenuItem>
); ))}
})}
</Menu> </Menu>
</Box> </Box>
</Box> </Box>

@ -1,12 +1,10 @@
import { Panel } from './Panels'; import { Panel } from './Panels';
import { HeaderText } from './Text'; import { HeaderText } from './Text';
const Domain = (): JSX.Element => { const Domain = (): JSX.Element => (
return (
<Panel> <Panel>
<HeaderText text="Domain Settings" /> <HeaderText text="Domain Settings" />
</Panel> </Panel>
); );
};
export default Domain; export default Domain;

@ -34,8 +34,7 @@ const SharedStorageHost = ({
host, host,
}: { }: {
host: AnvilFileSystemHost; host: AnvilFileSystemHost;
}): JSX.Element => { }): JSX.Element => (
return (
<StyledDiv> <StyledDiv>
<Box display="flex" width="100%" className={classes.fs}> <Box display="flex" width="100%" className={classes.fs}>
<Box flexGrow={1}> <Box flexGrow={1}>
@ -84,6 +83,5 @@ const SharedStorageHost = ({
)} )}
</StyledDiv> </StyledDiv>
); );
};
export default SharedStorageHost; export default SharedStorageHost;

@ -117,13 +117,11 @@ const FileInfo = (
}} }}
> >
{UPLOAD_FILE_TYPES_ARRAY.map( {UPLOAD_FILE_TYPES_ARRAY.map(
([fileTypeKey, [, fileTypeDisplayString]]) => { ([fileTypeKey, [, fileTypeDisplayString]]) => (
return (
<StyledMenuItem key={fileTypeKey} value={fileTypeKey}> <StyledMenuItem key={fileTypeKey} value={fileTypeKey}>
{fileTypeDisplayString} {fileTypeDisplayString}
</StyledMenuItem> </StyledMenuItem>
); ),
},
)} )}
</StyledSelect> </StyledSelect>
</FormControl> </FormControl>

@ -10,8 +10,7 @@ type FileListProps = {
filesOverview: FileOverviewMetadata[]; filesOverview: FileOverviewMetadata[];
}; };
const FileList = ({ filesOverview }: FileListProps): JSX.Element => { const FileList = ({ filesOverview }: FileListProps): JSX.Element => (
return (
<List> <List>
{filesOverview.map( {filesOverview.map(
({ fileChecksum, fileName, fileSizeInBytes, fileType, fileUUID }) => { ({ fileChecksum, fileName, fileSizeInBytes, fileType, fileUUID }) => {
@ -51,9 +50,7 @@ const FileList = ({ filesOverview }: FileListProps): JSX.Element => {
marginRight: '.5em', marginRight: '.5em',
}} }}
/> />
<BodyText <BodyText text={UPLOAD_FILE_TYPES.get(fileType)?.[1] ?? ''} />
text={UPLOAD_FILE_TYPES.get(fileType)?.[1] ?? ''}
/>
</Box> </Box>
<BodyText text={fileSize} /> <BodyText text={fileSize} />
</Box> </Box>
@ -79,6 +76,5 @@ const FileList = ({ filesOverview }: FileListProps): JSX.Element => {
)} )}
</List> </List>
); );
};
export default FileList; export default FileList;

@ -86,10 +86,10 @@ const AnvilHost = ({
<StyledBox> <StyledBox>
{hosts && {hosts &&
hosts.map( hosts.map(
(host): JSX.Element => { (host): JSX.Element =>
// Temporary fix: avoid crash when encounter undefined host entry by returning a blank element. // Temporary fix: avoid crash when encounter undefined host entry by returning a blank element.
// TODO: figure out why there are undefined host entries. // TODO: figure out why there are undefined host entries.
return host ? ( host ? (
<InnerPanel key={host.host_uuid}> <InnerPanel key={host.host_uuid}>
<InnerPanelHeader> <InnerPanelHeader>
<Box display="flex" width="100%" className={classes.header}> <Box display="flex" width="100%" className={classes.header}>
@ -169,8 +169,7 @@ const AnvilHost = ({
</InnerPanel> </InnerPanel>
) : ( ) : (
<></> <></>
); ),
},
)} )}
</StyledBox> </StyledBox>
); );

@ -64,9 +64,8 @@ const StyledBox = styled(Box)({
}); });
const MessageBox = ({ type, text }: MessageBoxProps): JSX.Element => { const MessageBox = ({ type, text }: MessageBoxProps): JSX.Element => {
const buildMessageBoxClasses = (messageBoxType: MessageBoxType) => { const buildMessageBoxClasses = (messageBoxType: MessageBoxType) =>
return MESSAGE_BOX_CLASSES[messageBoxType]; MESSAGE_BOX_CLASSES[messageBoxType];
};
const buildMessageIcon = (messageBoxType: MessageBoxType) => { const buildMessageIcon = (messageBoxType: MessageBoxType) => {
let messageIcon; let messageIcon;
@ -85,9 +84,9 @@ const MessageBox = ({ type, text }: MessageBoxProps): JSX.Element => {
return messageIcon; return messageIcon;
}; };
const buildMessage = (message: string, messageBoxType: MessageBoxType) => { const buildMessage = (message: string, messageBoxType: MessageBoxType) => (
return <BodyText inverted={messageBoxType === 'info'} text={message} />; <BodyText inverted={messageBoxType === 'info'} text={message} />
}; );
return ( return (
<StyledBox className={buildMessageBoxClasses(type)}> <StyledBox className={buildMessageBoxClasses(type)}>

@ -81,8 +81,7 @@ const Network = (): JSX.Element => {
{!isLoading ? ( {!isLoading ? (
<Box className={classes.container}> <Box className={classes.container}>
{data && {data &&
processed.bonds.map((bond: ProcessedBond) => { processed.bonds.map((bond: ProcessedBond) => (
return (
<> <>
<Box <Box
display="flex" display="flex"
@ -128,8 +127,7 @@ const Network = (): JSX.Element => {
</Box> </Box>
<Divider className={classes.divider} /> <Divider className={classes.divider} />
</> </>
); ))}
})}
</Box> </Box>
) : ( ) : (
<Spinner /> <Spinner />

@ -18,8 +18,8 @@ type Props = {
children: ReactNode; children: ReactNode;
}; };
const InnerPanel = ({ children }: Props): JSX.Element => { const InnerPanel = ({ children }: Props): JSX.Element => (
return <StyledBox>{children}</StyledBox>; <StyledBox>{children}</StyledBox>
}; );
export default InnerPanel; export default InnerPanel;

@ -32,13 +32,11 @@ type Props = {
children: ReactNode; children: ReactNode;
}; };
const InnerPanelHeader = ({ children }: Props): JSX.Element => { const InnerPanelHeader = ({ children }: Props): JSX.Element => (
return (
<StyledBox> <StyledBox>
<div className={classes.header} /> <div className={classes.header} />
{children} {children}
</StyledBox> </StyledBox>
); );
};
export default InnerPanelHeader; export default InnerPanelHeader;

@ -71,8 +71,7 @@ const styledScrollbars = (
/> />
); );
const Panel = ({ children }: PanelProps): JSX.Element => { const Panel = ({ children }: PanelProps): JSX.Element => (
return (
<StyledDiv> <StyledDiv>
{styledScrollbars} {styledScrollbars}
<div className={`${classes.square} ${classes.topSquare}`} /> <div className={`${classes.square} ${classes.topSquare}`} />
@ -80,6 +79,5 @@ const Panel = ({ children }: PanelProps): JSX.Element => {
<div className={classes.paper}>{children}</div> <div className={classes.paper}>{children}</div>
</StyledDiv> </StyledDiv>
); );
};
export default Panel; export default Panel;

@ -71,12 +71,10 @@ const ResourceVolumes = ({
resource, resource,
}: { }: {
resource: AnvilReplicatedStorage; resource: AnvilReplicatedStorage;
}): JSX.Element => { }): JSX.Element => (
return (
<StyledBox> <StyledBox>
{resource && {resource &&
resource.volumes.map((volume) => { resource.volumes.map((volume) => (
return (
<InnerPanel key={volume.drbd_device_minor}> <InnerPanel key={volume.drbd_device_minor}>
<InnerPanelHeader> <InnerPanelHeader>
<Box display="flex" width="100%" className={classes.header}> <Box display="flex" width="100%" className={classes.header}>
@ -93,8 +91,7 @@ const ResourceVolumes = ({
</Box> </Box>
</InnerPanelHeader> </InnerPanelHeader>
{volume.connections.map( {volume.connections.map(
(connection, index): JSX.Element => { (connection, index): JSX.Element => (
return (
<> <>
<Box <Box
key={connection.fencing} key={connection.fencing}
@ -104,26 +101,16 @@ const ResourceVolumes = ({
> >
<Box className={classes.decoratorBox}> <Box className={classes.decoratorBox}>
<Decorator <Decorator
colour={selectDecorator( colour={selectDecorator(connection.connection_state)}
connection.connection_state,
)}
/> />
</Box> </Box>
<Box> <Box>
<Box display="flex" width="100%"> <Box display="flex" width="100%">
<BodyText <BodyText text={connection.targets[0].target_name} />
text={connection.targets[0].target_name}
/>
<InsertLinkIcon style={{ color: DIVIDER }} /> <InsertLinkIcon style={{ color: DIVIDER }} />
<BodyText <BodyText text={connection.targets[1].target_name} />
text={connection.targets[1].target_name}
/>
</Box> </Box>
<Box <Box display="flex" justifyContent="center" width="100%">
display="flex"
justifyContent="center"
width="100%"
>
<BodyText text={connection.connection_state} /> <BodyText text={connection.connection_state} />
</Box> </Box>
</Box> </Box>
@ -132,14 +119,11 @@ const ResourceVolumes = ({
<Divider className={classes.divider} /> <Divider className={classes.divider} />
) : null} ) : null}
</> </>
); ),
},
)} )}
</InnerPanel> </InnerPanel>
); ))}
})}
</StyledBox> </StyledBox>
); );
};
export default ResourceVolumes; export default ResourceVolumes;

@ -6,13 +6,11 @@ const Resource = ({
resource, resource,
}: { }: {
resource: AnvilReplicatedStorage; resource: AnvilReplicatedStorage;
}): JSX.Element => { }): JSX.Element => (
return (
<Panel> <Panel>
<HeaderText text={`Resource: ${resource.resource_name}`} /> <HeaderText text={`Resource: ${resource.resource_name}`} />
<ResourceVolumes resource={resource} /> <ResourceVolumes resource={resource} />
</Panel> </Panel>
); );
};
export default Resource; export default Resource;

@ -261,8 +261,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
open={Boolean(anchorEl)} open={Boolean(anchorEl)}
onClose={() => setAnchorEl(null)} onClose={() => setAnchorEl(null)}
> >
{buttonLabels.current.map((label: ButtonLabels) => { {buttonLabels.current.map((label: ButtonLabels) => (
return (
<ServerActionButtonMenuItem <ServerActionButtonMenuItem
onClick={() => handlePower(label)} onClick={() => handlePower(label)}
key={label} key={label}
@ -274,8 +273,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
{label.replace(/^[a-z]/, (c) => c.toUpperCase())} {label.replace(/^[a-z]/, (c) => c.toUpperCase())}
</ServerActionButtonMenuItemLabel> </ServerActionButtonMenuItemLabel>
</ServerActionButtonMenuItem> </ServerActionButtonMenuItem>
); ))}
})}
</Menu> </Menu>
</Box> </Box>
</Box> </Box>
@ -311,8 +309,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
{!isLoading ? ( {!isLoading ? (
<Box className={classes.root}> <Box className={classes.root}>
<List component="nav"> <List component="nav">
{data?.servers.map((server: AnvilServer) => { {data?.servers.map((server: AnvilServer) => (
return (
<> <>
<ListItem <ListItem
button button
@ -329,9 +326,8 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
style={{ color: TEXT }} style={{ color: TEXT }}
color="secondary" color="secondary"
checked={ checked={
selected.find( selected.find((s) => s === server.server_uuid) !==
(s) => s === server.server_uuid, undefined
) !== undefined
} }
/> />
</Box> </Box>
@ -367,8 +363,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
<BodyText <BodyText
text={host.host_name} text={host.host_name}
selected={ selected={
server.server_host_uuid === server.server_host_uuid === host.host_uuid
host.host_uuid
} }
/> />
</Box> </Box>
@ -386,8 +381,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
</ListItem> </ListItem>
<Divider className={classes.divider} /> <Divider className={classes.divider} />
</> </>
); ))}
})}
</List> </List>
</Box> </Box>
) : ( ) : (

@ -33,8 +33,7 @@ const SharedStorageHost = ({
group, group,
}: { }: {
group: AnvilSharedStorageGroup; group: AnvilSharedStorageGroup;
}): JSX.Element => { }): JSX.Element => (
return (
<StyledDiv> <StyledDiv>
<Box display="flex" width="100%" className={classes.fs}> <Box display="flex" width="100%" className={classes.fs}>
<Box flexGrow={1}> <Box flexGrow={1}>
@ -68,16 +67,12 @@ const SharedStorageHost = ({
</Box> </Box>
<Box display="flex" justifyContent="center" width="100%"> <Box display="flex" justifyContent="center" width="100%">
<BodyText <BodyText
text={`Total Storage: ${prettyBytes.default( text={`Total Storage: ${prettyBytes.default(group.storage_group_total, {
group.storage_group_total,
{
binary: true, binary: true,
}, })}`}
)}`}
/> />
</Box> </Box>
</StyledDiv> </StyledDiv>
); );
};
export default SharedStorageHost; export default SharedStorageHost;

@ -19,12 +19,10 @@ const StyledDiv = styled('div')(() => ({
}, },
})); }));
const Spinner = (): JSX.Element => { const Spinner = (): JSX.Element => (
return (
<StyledDiv> <StyledDiv>
<CircularProgress variant="indeterminate" className={classes.spinner} /> <CircularProgress variant="indeterminate" className={classes.spinner} />
</StyledDiv> </StyledDiv>
); );
};
export default Spinner; export default Spinner;

@ -6,8 +6,8 @@ const WhiteTypography = styled(Typography)({
color: TEXT, color: TEXT,
}); });
const HeaderText = ({ text }: { text: string }): JSX.Element => { const HeaderText = ({ text }: { text: string }): JSX.Element => (
return <WhiteTypography variant="h4">{text}</WhiteTypography>; <WhiteTypography variant="h4">{text}</WhiteTypography>
}; );
export default HeaderText; export default HeaderText;

@ -5,7 +5,5 @@ export const UPLOAD_FILE_TYPES_ARRAY: ReadonlyArray<
['other', ['text/plain', 'Other file type']], ['other', ['text/plain', 'Other file type']],
['script', ['text/plain', 'Script (program)']], ['script', ['text/plain', 'Script (program)']],
]; ];
export const UPLOAD_FILE_TYPES: ReadonlyMap< export const UPLOAD_FILE_TYPES: ReadonlyMap<FileType, [string, string]> =
FileType, new Map(UPLOAD_FILE_TYPES_ARRAY);
[string, string]
> = new Map(UPLOAD_FILE_TYPES_ARRAY);

@ -1,8 +1,6 @@
import { EmotionCache } from '@emotion/react'; import { EmotionCache } from '@emotion/react';
import createCache from '@emotion/cache'; import createCache from '@emotion/cache';
const createEmotionCache = (): EmotionCache => { const createEmotionCache = (): EmotionCache => createCache({ key: 'css' });
return createCache({ key: 'css' });
};
export default createEmotionCache; export default createEmotionCache;

@ -1,5 +1,4 @@
const fetchJSON = <T>(...args: [RequestInfo, RequestInit?]): Promise<T> => { const fetchJSON = <T>(...args: [RequestInfo, RequestInit?]): Promise<T> =>
return fetch(...args).then((response: Response) => response.json()); fetch(...args).then((response: Response) => response.json());
};
export default fetchJSON; export default fetchJSON;

@ -1,12 +1,11 @@
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
const putFetch = <T>(uri: string, data: T): Promise<any> => { const putFetch = <T>(uri: string, data: T): Promise<any> =>
return fetch(uri, { fetch(uri, {
method: 'PUT', method: 'PUT',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
body: JSON.stringify(data), body: JSON.stringify(data),
}); });
};
export default putFetch; export default putFetch;

@ -1,7 +1,4 @@
const hostsSanitizer = ( const hostsSanitizer = (data: Array<AnvilStatusHost>): Array<AnvilStatusHost> =>
data: Array<AnvilStatusHost>, data?.filter((host) => host.host_uuid);
): Array<AnvilStatusHost> => {
return data?.filter((host) => host.host_uuid);
};
export default hostsSanitizer; export default hostsSanitizer;

@ -17,8 +17,7 @@ const App = ({
Component, Component,
emotionCache = clientSideEmotionCache, emotionCache = clientSideEmotionCache,
pageProps, pageProps,
}: MyAppProps): JSX.Element => { }: MyAppProps): JSX.Element => (
return (
<CacheProvider value={emotionCache}> <CacheProvider value={emotionCache}>
<ThemeProvider theme={theme}> <ThemeProvider theme={theme}>
<Component <Component
@ -28,6 +27,5 @@ const App = ({
</ThemeProvider> </ThemeProvider>
</CacheProvider> </CacheProvider>
); );
};
export default App; export default App;

@ -3,8 +3,7 @@ import Head from 'next/head';
import Files from '../../components/Files'; import Files from '../../components/Files';
import Header from '../../components/Header'; import Header from '../../components/Header';
const FileManager = (): JSX.Element => { const FileManager = (): JSX.Element => (
return (
<> <>
<Head> <Head>
<title>File Manager</title> <title>File Manager</title>
@ -13,6 +12,5 @@ const FileManager = (): JSX.Element => {
<Files /> <Files />
</> </>
); );
};
export default FileManager; export default FileManager;

Loading…
Cancel
Save