Add translation and refactor deprecated property

This commit is contained in:
Nicola Benaglia 2025-05-28 22:30:33 +02:00
parent 94d538b9eb
commit 808a9de1e4

View File

@ -281,7 +281,11 @@ export const AppsPrivate = ({ myName }) => {
<AddIcon /> <AddIcon />
</AppCircle> </AppCircle>
<AppCircleLabel>Private</AppCircleLabel> <AppCircleLabel>
{t('core:app_private', {
postProcess: 'capitalizeFirstChar',
})}
</AppCircleLabel>
</AppCircleContainer> </AppCircleContainer>
</ButtonBase> </ButtonBase>
@ -306,10 +310,12 @@ export const AppsPrivate = ({ myName }) => {
}} }}
maxWidth="md" maxWidth="md"
fullWidth={true} fullWidth={true}
PaperProps={{ slotProps={{
style: { paper: {
backgroundColor: theme.palette.background.paper, style: {
boxShadow: 'none', backgroundColor: theme.palette.background.paper,
boxShadow: 'none',
},
}, },
}} }}
> >
@ -354,6 +360,7 @@ export const AppsPrivate = ({ myName }) => {
/> />
</Tabs> </Tabs>
</Box> </Box>
{valueTabPrivateApp === 0 && ( {valueTabPrivateApp === 0 && (
<> <>
<DialogContent> <DialogContent>
@ -369,6 +376,7 @@ export const AppsPrivate = ({ myName }) => {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
})} })}
</Label> </Label>
<Label> <Label>
{t('group:message.generic.only_private_groups', { {t('group:message.generic.only_private_groups', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
@ -422,6 +430,7 @@ export const AppsPrivate = ({ myName }) => {
<Label> <Label>
{t('core:name', { postProcess: 'capitalizeFirstChar' })} {t('core:name', { postProcess: 'capitalizeFirstChar' })}
</Label> </Label>
<Input <Input
placeholder={t('core:name', { placeholder={t('core:name', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
@ -480,6 +489,7 @@ export const AppsPrivate = ({ myName }) => {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
})} })}
</Button> </Button>
<Button <Button
disabled={ disabled={
!privateAppValues.name || !privateAppValues.name ||
@ -498,6 +508,7 @@ export const AppsPrivate = ({ myName }) => {
</DialogActions> </DialogActions>
</> </>
)} )}
{valueTabPrivateApp === 1 && ( {valueTabPrivateApp === 1 && (
<> <>
<DialogContent> <DialogContent>
@ -519,8 +530,7 @@ export const AppsPrivate = ({ myName }) => {
backgroundColor: theme.palette.background.paper, backgroundColor: theme.palette.background.paper,
fontSize: '14px', fontSize: '14px',
}} }}
>{` >{` 50mb MB max`}</PublishQAppInfo>
50mb MB max`}</PublishQAppInfo>
{file && ( {file && (
<> <>
<Spacer height="5px" /> <Spacer height="5px" />
@ -612,6 +622,7 @@ export const AppsPrivate = ({ myName }) => {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
})} })}
</Label> </Label>
<Input <Input
placeholder={t('core:identifier', { placeholder={t('core:identifier', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',