src/pages/reset-password/index.tsx
Function ResetPassword
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ResetPassword: React.FC = () => {
const { push } = useHistory();
const { search } = useLocation();
const email = search && search.split("&")[0].split("=")[1];
const token = search && search.split("&")[1].split("=")[1];