瀏覽代碼

fine tunning

Abhinav 3 年之前
父節點
當前提交
ea45a58ec0

+ 1 - 1
src/components/Login.tsx

@@ -80,7 +80,7 @@ export default function Login(props: LoginProps) {
                         />
                         />
 
 
                         <SubmitButton
                         <SubmitButton
-                            sx={{ mb: 4 }}
+                            sx={{ mt: 2 }}
                             buttonText={constants.LOGIN}
                             buttonText={constants.LOGIN}
                             loading={waiting}
                             loading={waiting}
                         />
                         />

+ 1 - 0
src/components/SetPasswordForm.tsx

@@ -86,6 +86,7 @@ function SetPasswordForm(props: Props) {
                     </Typography>
                     </Typography>
 
 
                     <SubmitButton
                     <SubmitButton
+                        sx={{ mb: 2 }}
                         loading={loading}
                         loading={loading}
                         buttonText={props.buttonText}
                         buttonText={props.buttonText}
                     />
                     />

+ 1 - 2
src/components/SingleInputForm.tsx

@@ -76,11 +76,10 @@ export default function SingleInputForm(props: Props) {
                     />
                     />
 
 
                     <SubmitButton
                     <SubmitButton
+                        sx={{ mt: 2 }}
                         buttonText={props.buttonText}
                         buttonText={props.buttonText}
                         loading={loading}
                         loading={loading}
                     />
                     />
-
-                    <br />
                 </form>
                 </form>
             )}
             )}
         </Formik>
         </Formik>

+ 1 - 1
src/components/SubmitButton.tsx

@@ -23,7 +23,7 @@ const SubmitButton: FC<ButtonProps<'button', Props>> = ({
             type="submit"
             type="submit"
             fullWidth={!inline}
             fullWidth={!inline}
             disabled={loading || disabled}
             disabled={loading || disabled}
-            sx={{ my: 2, ...sx }}
+            sx={{ my: 4, ...sx }}
             {...props}>
             {...props}>
             {loading ? <CircularProgress size={25} /> : buttonText}
             {loading ? <CircularProgress size={25} /> : buttonText}
         </Button>
         </Button>

+ 3 - 1
src/pages/credentials/index.tsx

@@ -21,6 +21,7 @@ import FormPaper from 'components/Form/FormPaper';
 import FormPaperTitle from 'components/Form/FormPaper/Title';
 import FormPaperTitle from 'components/Form/FormPaper/Title';
 import FormPaperFooter from 'components/Form/FormPaper/Footer';
 import FormPaperFooter from 'components/Form/FormPaper/Footer';
 import LinkButton from 'components/pages/gallery/LinkButton';
 import LinkButton from 'components/pages/gallery/LinkButton';
+import Divider from '@mui/material/Divider';
 
 
 export default function Credentials() {
 export default function Credentials() {
     const router = useRouter();
     const router = useRouter();
@@ -108,12 +109,13 @@ export default function Credentials() {
                     buttonText={constants.VERIFY_PASSPHRASE}
                     buttonText={constants.VERIFY_PASSPHRASE}
                     fieldType="password"
                     fieldType="password"
                 />
                 />
+                <Divider />
                 <FormPaperFooter style={{ justifyContent: 'space-between' }}>
                 <FormPaperFooter style={{ justifyContent: 'space-between' }}>
                     <LinkButton onClick={redirectToRecoverPage}>
                     <LinkButton onClick={redirectToRecoverPage}>
                         {constants.FORGOT_PASSWORD}
                         {constants.FORGOT_PASSWORD}
                     </LinkButton>
                     </LinkButton>
                     <LinkButton onClick={logoutUser}>
                     <LinkButton onClick={logoutUser}>
-                        {constants.GO_BACK}
+                        {constants.CHANGE_EMAIL}
                     </LinkButton>
                     </LinkButton>
                 </FormPaperFooter>
                 </FormPaperFooter>
             </FormPaper>
             </FormPaper>

+ 1 - 1
src/pages/verify/index.tsx

@@ -163,7 +163,7 @@ export default function Verify() {
                             />
                             />
 
 
                             <SubmitButton
                             <SubmitButton
-                                sx={{ mb: 4 }}
+                                sx={{ mt: 2 }}
                                 buttonText={constants.VERIFY}
                                 buttonText={constants.VERIFY}
                                 loading={loading}
                                 loading={loading}
                             />
                             />