Skip to content

Commit

Permalink
Merge pull request #69 from marmelab/fix/form-wording
Browse files Browse the repository at this point in the history
Fix(buttons): Remove save icon when not needed
  • Loading branch information
slax57 authored Aug 12, 2024
2 parents 2ae0dcc + a4985df commit c5ec262
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const ForgotPasswordForm = () => {
label={translate('ra.action.reset_password', {
_: 'Reset password',
})}
icon={<></>}
/>
</CardActions>
</Root>
Expand Down
7 changes: 4 additions & 3 deletions packages/ra-supabase-ui-materialui/src/LoginForm.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react';
import { ComponentProps } from 'react';
import { Form, required, useLogin, useNotify, useTranslate } from 'ra-core';
import { CardActions, styled } from '@mui/material';
import { Form, required, useLogin, useNotify, useTranslate } from 'ra-core';
import { Link, PasswordInput, SaveButton, TextInput } from 'ra-ui-materialui';
import * as React from 'react';
import { ComponentProps } from 'react';
import { ForgotPasswordPage } from './ForgotPasswordPage';

/**
Expand Down Expand Up @@ -72,6 +72,7 @@ export const LoginForm = ({
type="submit"
className={SupabaseLoginFormClasses.button}
label={translate('ra.auth.sign_in')}
icon={<></>}
/>
{!disableForgotPassword ? (
<Link to={ForgotPasswordPage.path}>
Expand Down

0 comments on commit c5ec262

Please sign in to comment.