Make RelinkDialog supersede the NetworkDialog
This commit is contained in:
parent
1b5c36a9a8
commit
752cd75c54
5 changed files with 9 additions and 26 deletions
|
@ -3,19 +3,17 @@ import React from 'react';
|
|||
import { LocalizerType } from '../types/Util';
|
||||
|
||||
export interface PropsType {
|
||||
hasNetworkDialog: boolean;
|
||||
i18n: LocalizerType;
|
||||
isRegistrationDone: boolean;
|
||||
relinkDevice: () => void;
|
||||
}
|
||||
|
||||
export const RelinkDialog = ({
|
||||
hasNetworkDialog,
|
||||
i18n,
|
||||
isRegistrationDone,
|
||||
relinkDevice,
|
||||
}: PropsType): JSX.Element | null => {
|
||||
if (hasNetworkDialog || isRegistrationDone) {
|
||||
if (isRegistrationDone) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue