Proyectos de Subversion LeadersLinked - SPA

Rev

Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3628 stevensc 1
import React from 'react';
2
import { Button } from '@mui/material';
3
import { useFormContext } from 'react-hook-form';
4
 
5
export const FormButton = ({ type = 'submit', children, ...props }) => {
6
  const { isSubmitting } = useFormContext();
7
 
8
  return (
9
    <Button type={type} {...props} disabled={isSubmitting} variant='contained' color='primary'>
10
      {children}
11
    </Button>
12
  );
13
};