diff --git a/striker-ui/components/Files/FileInfo.tsx b/striker-ui/components/Files/FileInfo.tsx index c901ba57..b348ac70 100644 --- a/striker-ui/components/Files/FileInfo.tsx +++ b/striker-ui/components/Files/FileInfo.tsx @@ -4,8 +4,6 @@ import { FormControl, FormControlLabel, FormGroup, - InputLabel, - inputLabelClasses, MenuItem, menuItemClasses, Select, @@ -18,17 +16,11 @@ import { } from '@mui/icons-material'; import { v4 as uuidv4 } from 'uuid'; -import { - BLACK, - BLUE, - BORDER_RADIUS, - GREY, - RED, - TEXT, -} from '../../lib/consts/DEFAULT_THEME'; +import { BLUE, GREY, RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; import { UPLOAD_FILE_TYPES_ARRAY } from '../../lib/consts/UPLOAD_FILE_TYPES'; import OutlinedInput from '../OutlinedInput'; +import OutlinedInputLabel from '../OutlinedInputLabel'; type FileInfoProps = Pick & Partial> & { @@ -41,17 +33,6 @@ const FILE_INFO_DEFAULT_PROPS: Partial = { onChange: undefined, }; -const StyledInputLabel = styled(InputLabel)({ - color: GREY, - - [`&.${inputLabelClasses.focused}`]: { - backgroundColor: GREY, - borderRadius: BORDER_RADIUS, - color: BLACK, - padding: '.1em .6em', - }, -}); - const StyledSelect = styled(Select)({ [`& .${selectClasses.icon}`]: { color: GREY, @@ -104,9 +85,9 @@ const FileInfo = ( return ( :not(:first-child)': { marginTop: '1em' } }}> - + {fileNameElementLabel} - + {fileType && ( - + {fileTypeElementLabel} - + ( + + {children} + +); + +export default OutlinedInputLabel; diff --git a/striker-ui/components/OutlinedInputLabel/index.tsx b/striker-ui/components/OutlinedInputLabel/index.tsx new file mode 100644 index 00000000..cbf38ad7 --- /dev/null +++ b/striker-ui/components/OutlinedInputLabel/index.tsx @@ -0,0 +1,3 @@ +import OutlinedInputLabel from './OutlinedInputLabel'; + +export default OutlinedInputLabel;