mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
fixed style violation
This commit is contained in:
1 parent
0dbd29472f
commit
bcd5ab66a4
1 file changed
+21
-8
@@ -43,7 +43,10 @@ const AdminFlavors: React.FC = () => {
|
||||
remove_id: removeFlavor.id,
|
||||
});
|
||||
|
||||
notify({ message: t('admin.mergeSuccess', { defaultValue: 'Flavors merged successfully' }), severity: 'success' });
|
||||
notify({
|
||||
message: t('admin.mergeSuccess', { defaultValue: 'Flavors merged successfully' }),
|
||||
severity: 'success',
|
||||
});
|
||||
|
||||
// Invalidate queries
|
||||
queryClient.invalidateQueries({ queryKey: queryKeys.flavors({ scope: 'all' }) });
|
||||
@@ -75,7 +78,8 @@ const AdminFlavors: React.FC = () => {
|
||||
</Typography>
|
||||
<Typography variant="body2" color="text.secondary" sx={{ mb: 3 }}>
|
||||
{t('admin.mergeFlavorsDesc', {
|
||||
defaultValue: 'Combine two flavors into one. Ratings from the source flavor will be moved to the target flavor. If a user rated both, the more detailed review is kept.'
|
||||
defaultValue:
|
||||
'Combine two flavors into one. Ratings from the source flavor will be moved to the target flavor. If a user rated both, the more detailed review is kept.',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
@@ -91,7 +95,9 @@ const AdminFlavors: React.FC = () => {
|
||||
<TextField
|
||||
{...params}
|
||||
label={t('admin.flavorToRemove', { defaultValue: 'Flavor to Remove (Source)' })}
|
||||
helperText={t('admin.flavorToRemoveHint', { defaultValue: 'This flavor will be DELETED' })}
|
||||
helperText={t('admin.flavorToRemoveHint', {
|
||||
defaultValue: 'This flavor will be DELETED',
|
||||
})}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
@@ -112,7 +118,9 @@ const AdminFlavors: React.FC = () => {
|
||||
<TextField
|
||||
{...params}
|
||||
label={t('admin.flavorToKeep', { defaultValue: 'Flavor to Keep (Target)' })}
|
||||
helperText={t('admin.flavorToKeepHint', { defaultValue: 'This flavor will PRESERVED' })}
|
||||
helperText={t('admin.flavorToKeepHint', {
|
||||
defaultValue: 'This flavor will PRESERVED',
|
||||
})}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
@@ -136,13 +144,16 @@ const AdminFlavors: React.FC = () => {
|
||||
</Card>
|
||||
|
||||
<Dialog open={confirmOpen} onClose={() => !isMerging && setConfirmOpen(false)}>
|
||||
<DialogTitle>{t('admin.confirmMergeTitle', { defaultValue: 'Confirm Flavor Merge' })}</DialogTitle>
|
||||
<DialogTitle>
|
||||
{t('admin.confirmMergeTitle', { defaultValue: 'Confirm Flavor Merge' })}
|
||||
</DialogTitle>
|
||||
<DialogContent>
|
||||
<DialogContentText>
|
||||
{t('admin.confirmMergeText', {
|
||||
defaultValue: 'Are you sure you want to merge "{{remove}}" into "{{keep}}"? This action is irreversible. "{{remove}}" will be deleted, and all its ratings will be transferred.',
|
||||
defaultValue:
|
||||
'Are you sure you want to merge "{{remove}}" into "{{keep}}"? This action is irreversible. "{{remove}}" will be deleted, and all its ratings will be transferred.',
|
||||
remove: removeFlavor?.name,
|
||||
keep: keepFlavor?.name
|
||||
keep: keepFlavor?.name,
|
||||
})}
|
||||
</DialogContentText>
|
||||
</DialogContent>
|
||||
@@ -157,7 +168,9 @@ const AdminFlavors: React.FC = () => {
|
||||
autoFocus
|
||||
disabled={isMerging}
|
||||
>
|
||||
{isMerging ? t('common.processing', { defaultValue: 'Processing...' }) : t('admin.confirmMerge', { defaultValue: 'Merge Flavors' })}
|
||||
{isMerging
|
||||
? t('common.processing', { defaultValue: 'Processing...' })
|
||||
: t('admin.confirmMerge', { defaultValue: 'Merge Flavors' })}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
|
||||
Reference in new issue
Block a user