update the submit button margin

This commit is contained in:
Abhinav 2022-05-19 23:02:07 +05:30
parent a1b79d1c19
commit 3dc1b60e90
3 changed files with 5 additions and 2 deletions

View file

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

View file

@ -12,8 +12,9 @@ const SubmitButton: FC<ButtonProps<'button', Props>> = ({
buttonText, buttonText,
inline, inline,
disabled, disabled,
sx,
...props ...props
}: Props) => { }) => {
return ( return (
<Button <Button
size="large" size="large"
@ -22,6 +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 }}
{...props}> {...props}>
{loading ? <CircularProgress size={25} /> : buttonText} {loading ? <CircularProgress size={25} /> : buttonText}
</Button> </Button>

View file

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