Skip to content

Commit

Permalink
[frontend] rename component for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg committed Jan 2, 2024
1 parent cd3fdab commit e3172bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { useTheme } from '@mui/styles';
import makeStyles from '@mui/styles/makeStyles';
import { ApexOptions } from 'apexcharts';
import { SimplePaletteColorOptions } from '@mui/material/styles/createPalette';
import UserConfidenceLevelField from '@components/settings/users/UserConfidenceLevelField';
import UserConfidenceLevel from '@components/settings/users/UserConfidenceLevel';
import FieldOrEmpty from '../../../../components/FieldOrEmpty';
import { useFormatter } from '../../../../components/i18n';
import UserEdition from './UserEdition';
Expand Down Expand Up @@ -541,11 +541,10 @@ const User: FunctionComponent<UserProps> = ({ data }) => {
/>
</Grid>
<Grid item={true} xs={6}>

<Typography variant="h3" gutterBottom={true}>
{t('Max Confidence Level')}
</Typography>
<UserConfidenceLevelField userConfidenceLevel={user.user_confidence_level}/>
<UserConfidenceLevel userConfidenceLevel={user.user_confidence_level}/>
</Grid>
</Grid>
</Paper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type UserConfidenceLevelFieldProps = {
userConfidenceLevel: User_user$data['user_confidence_level']
};

const UserConfidenceLevelField: React.FC<UserConfidenceLevelFieldProps> = ({ userConfidenceLevel }) => {
const UserConfidenceLevel: React.FC<UserConfidenceLevelFieldProps> = ({ userConfidenceLevel }) => {
const { t } = useFormatter();

const overrides = userConfidenceLevel.overrides
Expand Down Expand Up @@ -41,4 +41,4 @@ const UserConfidenceLevelField: React.FC<UserConfidenceLevelFieldProps> = ({ use
);
};

export default UserConfidenceLevelField;
export default UserConfidenceLevel;

0 comments on commit e3172bd

Please sign in to comment.