Browse Source

move text-align to form paper

Abhinav 3 years ago
parent
commit
e067fd88ce

+ 1 - 3
src/components/Form/FormContainer.tsx

@@ -4,9 +4,7 @@ import VerticallyCentered from 'components/Container';
 import { BoxProps } from '@mui/system';
 import { BoxProps } from '@mui/system';
 
 
 const FormContainer: FC<BoxProps> = ({ children, ...props }) => (
 const FormContainer: FC<BoxProps> = ({ children, ...props }) => (
-    <VerticallyCentered
-        sx={{ '&&': { alignItems: 'flex-end', textAlign: 'left' } }}
-        {...props}>
+    <VerticallyCentered sx={{ '&&': { alignItems: 'flex-end' } }} {...props}>
         {children}
         {children}
     </VerticallyCentered>
     </VerticallyCentered>
 );
 );

+ 1 - 0
src/components/Form/FormPaper/index.tsx

@@ -7,5 +7,6 @@ const FormPaper = styled(Paper)(({ theme }) => ({
     [theme.breakpoints.down('md')]: {
     [theme.breakpoints.down('md')]: {
         marginRight: theme.spacing(5),
         marginRight: theme.spacing(5),
     },
     },
+    textAlign: 'left',
 }));
 }));
 export default FormPaper;
 export default FormPaper;