diff --git a/striker-ui/components/Files/FileList.tsx b/striker-ui/components/Files/FileList.tsx index 1e9244a2..d3d6032c 100644 --- a/striker-ui/components/Files/FileList.tsx +++ b/striker-ui/components/Files/FileList.tsx @@ -2,6 +2,7 @@ import { Box, Divider, List, ListItem } from '@mui/material'; import * as prettyBytes from 'pretty-bytes'; import { DIVIDER } from '../../lib/consts/DEFAULT_THEME'; +import { UPLOAD_FILE_TYPES } from '../../lib/consts/UPLOAD_FILE_TYPES'; import { BodyText } from '../Text'; @@ -19,22 +20,28 @@ const FileList = ({ filesOverview }: FileListProps): JSX.Element => { }); return ( - + - + - + { marginRight: '.5em', }} /> - + @@ -55,7 +64,13 @@ const FileList = ({ filesOverview }: FileListProps): JSX.Element => { flexDirection: 'row', }} > - + diff --git a/striker-ui/components/Text/BodyText.tsx b/striker-ui/components/Text/BodyText.tsx index 00138f8d..62c17412 100644 --- a/striker-ui/components/Text/BodyText.tsx +++ b/striker-ui/components/Text/BodyText.tsx @@ -1,5 +1,5 @@ -import { Typography } from '@mui/material'; -import { styled } from '@mui/material/styles'; +import { styled, Typography, TypographyProps } from '@mui/material'; + import { TEXT, UNSELECTED } from '../../lib/consts/DEFAULT_THEME'; const PREFIX = 'BodyText'; @@ -19,16 +19,17 @@ const StyledTypography = styled(Typography)(() => ({ }, })); -interface TextProps { +type BodyTextProps = TypographyProps & { text: string; selected?: boolean; -} +}; -const BodyText = ({ text, selected }: TextProps): JSX.Element => { +const BodyText = ({ sx, text, selected }: BodyTextProps): JSX.Element => { return ( {text}