mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 18:29:23 +02:00
feat(adb): add power related api
This commit is contained in:
parent
1ea248d57e
commit
45d784c8a5
19 changed files with 196 additions and 106 deletions
|
@ -1,7 +1,7 @@
|
|||
import { Dialog, DialogFooter, DialogType, PrimaryButton } from '@fluentui/react';
|
||||
import { observer } from "mobx-react-lite";
|
||||
import { PropsWithChildren } from 'react';
|
||||
import { global } from '../state';
|
||||
import { globalState } from '../state';
|
||||
|
||||
export const ErrorDialogProvider = observer((props: PropsWithChildren<{}>) => {
|
||||
return (
|
||||
|
@ -9,15 +9,15 @@ export const ErrorDialogProvider = observer((props: PropsWithChildren<{}>) => {
|
|||
{props.children}
|
||||
|
||||
<Dialog
|
||||
hidden={!global.errorDialogVisible}
|
||||
hidden={!globalState.errorDialogVisible}
|
||||
dialogContentProps={{
|
||||
type: DialogType.normal,
|
||||
title: 'Error',
|
||||
subText: global.errorDialogMessage,
|
||||
subText: globalState.errorDialogMessage,
|
||||
}}
|
||||
>
|
||||
<DialogFooter>
|
||||
<PrimaryButton text="OK" onClick={global.hideErrorDialog} />
|
||||
<PrimaryButton text="OK" onClick={globalState.hideErrorDialog} />
|
||||
</DialogFooter>
|
||||
</Dialog>
|
||||
</>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue