fix: CreateFolderDialog and EditFolderDialog errors
This commit is contained in:
@@ -59,16 +59,15 @@ export default function CreateFolderDialog(props) {
|
|||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
{formatMessage('createFolderDialog.description')}
|
{formatMessage('createFolderDialog.description')}
|
||||||
|
|
||||||
<TextField
|
|
||||||
sx={{ mt: 2 }}
|
|
||||||
value={folderName}
|
|
||||||
onKeyDown={handleTextFieldKeyDown}
|
|
||||||
onChange={handleTextFieldChange}
|
|
||||||
label={formatMessage('createFolderDialog.folderNameInputLabel')}
|
|
||||||
fullWidth
|
|
||||||
/>
|
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
|
<TextField
|
||||||
|
sx={{ mt: 2 }}
|
||||||
|
value={folderName}
|
||||||
|
onKeyDown={handleTextFieldKeyDown}
|
||||||
|
onChange={handleTextFieldChange}
|
||||||
|
label={formatMessage('createFolderDialog.folderNameInputLabel')}
|
||||||
|
fullWidth
|
||||||
|
/>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|
||||||
<DialogActions sx={{ mb: 1 }}>
|
<DialogActions sx={{ mb: 1 }}>
|
||||||
|
|||||||
@@ -62,16 +62,15 @@ export default function EditFolderDialog(props) {
|
|||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
{formatMessage('editFolderDialog.description')}
|
{formatMessage('editFolderDialog.description')}
|
||||||
|
|
||||||
<TextField
|
|
||||||
sx={{ mt: 2 }}
|
|
||||||
value={folderName}
|
|
||||||
onKeyDown={handleTextFieldKeyDown}
|
|
||||||
onChange={handleTextFieldChange}
|
|
||||||
label={formatMessage('editFolderDialog.folderNameInputLabel')}
|
|
||||||
fullWidth
|
|
||||||
/>
|
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
|
<TextField
|
||||||
|
sx={{ mt: 2 }}
|
||||||
|
value={folderName}
|
||||||
|
onKeyDown={handleTextFieldKeyDown}
|
||||||
|
onChange={handleTextFieldChange}
|
||||||
|
label={formatMessage('editFolderDialog.folderNameInputLabel')}
|
||||||
|
fullWidth
|
||||||
|
/>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|
||||||
<DialogActions sx={{ mb: 1 }}>
|
<DialogActions sx={{ mb: 1 }}>
|
||||||
@@ -80,7 +79,6 @@ export default function EditFolderDialog(props) {
|
|||||||
onClick={handleUpdateFolder}
|
onClick={handleUpdateFolder}
|
||||||
data-test="edit-folder-dialog-update-button"
|
data-test="edit-folder-dialog-update-button"
|
||||||
startIcon={<SaveIcon />}
|
startIcon={<SaveIcon />}
|
||||||
Save
|
|
||||||
>
|
>
|
||||||
{formatMessage('editFolderDialog.update')}
|
{formatMessage('editFolderDialog.update')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user