You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-10 22:11:50 +02:00
Chore: Mobile: Fix warning (#12786)
This commit is contained in:
@@ -66,7 +66,6 @@ const DialogManager: React.FC<Props> = props => {
|
|||||||
const dialogComponents: React.ReactNode[] = [];
|
const dialogComponents: React.ReactNode[] = [];
|
||||||
for (const dialog of dialogModels) {
|
for (const dialog of dialogModels) {
|
||||||
const dialogProps = {
|
const dialogProps = {
|
||||||
key: dialog.key,
|
|
||||||
containerStyle: styles.dialogContainer,
|
containerStyle: styles.dialogContainer,
|
||||||
themeId: props.themeId,
|
themeId: props.themeId,
|
||||||
};
|
};
|
||||||
@@ -75,6 +74,7 @@ const DialogManager: React.FC<Props> = props => {
|
|||||||
<PromptDialog
|
<PromptDialog
|
||||||
dialog={dialog}
|
dialog={dialog}
|
||||||
{...dialogProps}
|
{...dialogProps}
|
||||||
|
key={dialog.key}
|
||||||
/>,
|
/>,
|
||||||
);
|
);
|
||||||
} else if (dialog.type === DialogType.TextInput) {
|
} else if (dialog.type === DialogType.TextInput) {
|
||||||
@@ -82,6 +82,7 @@ const DialogManager: React.FC<Props> = props => {
|
|||||||
<TextInputDialog
|
<TextInputDialog
|
||||||
dialog={dialog}
|
dialog={dialog}
|
||||||
{...dialogProps}
|
{...dialogProps}
|
||||||
|
key={dialog.key}
|
||||||
/>,
|
/>,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user