File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/packages/core/src/components/ColorModal Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as foq from "@fiftyone/relay";
33import * as fos from "@fiftyone/state" ;
44import React , { useEffect } from "react" ;
55import { useMutation } from "react-relay" ;
6- import { useRecoilValue } from "recoil" ;
6+ import { useRecoilValue , useSetRecoilState } from "recoil" ;
77import { ButtonGroup , ModalActionButtonContainer } from "./ShareStyledDiv" ;
88import { activeColorEntry } from "./state" ;
99
@@ -15,6 +15,7 @@ const ColorFooter: React.FC = () => {
1515 : "Save to dataset app config" ;
1616 const setColorScheme = fos . useSetSessionColorScheme ( ) ;
1717 const activeColorModalField = useRecoilValue ( activeColorEntry ) ;
18+ const setActiveColorModalField = useSetRecoilState ( activeColorEntry ) ;
1819 const [ setDatasetColorScheme ] =
1920 useMutation < foq . setDatasetColorSchemeMutation > ( foq . setDatasetColorScheme ) ;
2021 const colorScheme = useRecoilValue ( fos . colorScheme ) ;
You can’t perform that action at this time.
0 commit comments