1
0
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:
Henry Heino
2025-07-25 01:19:11 -07:00
committed by GitHub
parent 3b1a4e8209
commit d8e73f3141

View File

@@ -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 {