File tree Expand file tree Collapse file tree
src/controls/uploadFiles/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22
3- import { useAtomValue } from 'jotai/utils ' ;
3+ import { useAtom } from 'jotai' ;
44import {
55 ICheckboxProps ,
66 ICheckboxStyles ,
@@ -22,7 +22,7 @@ import { IStyleFunctionOrObject } from 'office-ui-fabric-react/lib/Utilities';
2222import { globalState } from '../../jotai/atoms' ;
2323
2424export const useFileStyles = ( ) => {
25- const appGlobalState = useAtomValue ( globalState ) ;
25+ const [ appGlobalState ] = useAtom ( globalState ) ;
2626 const { themeVariant } = appGlobalState ;
2727
2828
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22
3- import { useAtomValue } from 'jotai/utils ' ;
3+ import { useAtom } from 'jotai' ;
44import { IButtonStyles } from 'office-ui-fabric-react/lib/Button' ;
55import {
66 ICheckboxProps ,
@@ -19,7 +19,7 @@ import { IStyleFunctionOrObject } from 'office-ui-fabric-react/lib/Utilities';
1919import { globalState } from '../../jotai/atoms' ;
2020
2121export const useFileCommandBarStyles = ( ) => {
22- const appGlobalState = useAtomValue ( globalState ) ;
22+ const [ appGlobalState ] = useAtom ( globalState ) ;
2323 const { themeVariant, selectedFiles } = appGlobalState ;
2424
2525 const checkBoxStyles : IStyleFunctionOrObject < ICheckboxProps , ICheckboxStyles > = React . useCallback (
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22
3- import { useAtomValue } from 'jotai/utils ' ;
3+ import { useAtom } from 'jotai' ;
44import { IIconStyles } from 'office-ui-fabric-react/lib/Icon' ;
55import { IStackStyles } from 'office-ui-fabric-react/lib/Stack' ;
66import {
@@ -12,7 +12,7 @@ import {
1212import { globalState } from '../../jotai/atoms' ;
1313
1414export const useNoDocumentsStyles = ( ) => {
15- const appGlobalState = useAtomValue ( globalState ) ;
15+ const [ appGlobalState ] = useAtom ( globalState ) ;
1616 const { themeVariant } = appGlobalState ;
1717
1818
Original file line number Diff line number Diff line change 11import React from 'react' ;
22
33/* eslint-disable @typescript-eslint/explicit-function-return-type */
4- import { useAtomValue } from 'jotai/utils ' ;
4+ import { useAtom } from 'jotai' ;
55import { IStackStyles } from 'office-ui-fabric-react/lib/Stack' ;
66import { FontWeights } from 'office-ui-fabric-react/lib/Styling' ;
77import { ITextStyles } from 'office-ui-fabric-react/lib/Text' ;
88
99import { globalState } from '../../jotai/atoms/globalState' ;
1010
1111export const useUploadFilesStyles = ( ) => {
12- const appGlobalState = useAtomValue ( globalState ) ;
12+ const [ appGlobalState ] = useAtom ( globalState ) ;
1313 const { themeVariant } = appGlobalState ;
1414
1515 const titleStyles : ITextStyles = React . useMemo ( ( ) => {
You can’t perform that action at this time.
0 commit comments