File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
src/controls/uploadFiles/components Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
3
- import { useAtomValue } from 'jotai/utils ' ;
3
+ import { useAtom } from 'jotai' ;
4
4
import {
5
5
ICheckboxProps ,
6
6
ICheckboxStyles ,
@@ -22,7 +22,7 @@ import { IStyleFunctionOrObject } from 'office-ui-fabric-react/lib/Utilities';
22
22
import { globalState } from '../../jotai/atoms' ;
23
23
24
24
export const useFileStyles = ( ) => {
25
- const appGlobalState = useAtomValue ( globalState ) ;
25
+ const [ appGlobalState ] = useAtom ( globalState ) ;
26
26
const { themeVariant } = appGlobalState ;
27
27
28
28
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
3
- import { useAtomValue } from 'jotai/utils ' ;
3
+ import { useAtom } from 'jotai' ;
4
4
import { IButtonStyles } from 'office-ui-fabric-react/lib/Button' ;
5
5
import {
6
6
ICheckboxProps ,
@@ -19,7 +19,7 @@ import { IStyleFunctionOrObject } from 'office-ui-fabric-react/lib/Utilities';
19
19
import { globalState } from '../../jotai/atoms' ;
20
20
21
21
export const useFileCommandBarStyles = ( ) => {
22
- const appGlobalState = useAtomValue ( globalState ) ;
22
+ const [ appGlobalState ] = useAtom ( globalState ) ;
23
23
const { themeVariant, selectedFiles } = appGlobalState ;
24
24
25
25
const checkBoxStyles : IStyleFunctionOrObject < ICheckboxProps , ICheckboxStyles > = React . useCallback (
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
3
- import { useAtomValue } from 'jotai/utils ' ;
3
+ import { useAtom } from 'jotai' ;
4
4
import { IIconStyles } from 'office-ui-fabric-react/lib/Icon' ;
5
5
import { IStackStyles } from 'office-ui-fabric-react/lib/Stack' ;
6
6
import {
@@ -12,7 +12,7 @@ import {
12
12
import { globalState } from '../../jotai/atoms' ;
13
13
14
14
export const useNoDocumentsStyles = ( ) => {
15
- const appGlobalState = useAtomValue ( globalState ) ;
15
+ const [ appGlobalState ] = useAtom ( globalState ) ;
16
16
const { themeVariant } = appGlobalState ;
17
17
18
18
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
3
/* eslint-disable @typescript-eslint/explicit-function-return-type */
4
- import { useAtomValue } from 'jotai/utils ' ;
4
+ import { useAtom } from 'jotai' ;
5
5
import { IStackStyles } from 'office-ui-fabric-react/lib/Stack' ;
6
6
import { FontWeights } from 'office-ui-fabric-react/lib/Styling' ;
7
7
import { ITextStyles } from 'office-ui-fabric-react/lib/Text' ;
8
8
9
9
import { globalState } from '../../jotai/atoms/globalState' ;
10
10
11
11
export const useUploadFilesStyles = ( ) => {
12
- const appGlobalState = useAtomValue ( globalState ) ;
12
+ const [ appGlobalState ] = useAtom ( globalState ) ;
13
13
const { themeVariant } = appGlobalState ;
14
14
15
15
const titleStyles : ITextStyles = React . useMemo ( ( ) => {
You can’t perform that action at this time.
0 commit comments