Skip to content

Commit

Permalink
change stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Canestin committed Oct 18, 2024
1 parent c0ca48a commit 3439e51
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ import { AppManifest } from "@ledgerhq/live-common/wallet-api/types";
import { dismissedManifestsAtom } from "LLM/features/Web3Hub/db";
import { useAtom } from "jotai";

export function useDismissedManifests() {
return useAtom(dismissedManifestsAtom);
}

export default function useDisclaimerViewModel(goToApp: (manifestId: string) => void) {
const [isChecked, setIsChecked] = useState(false);
const [disclaimerOpened, setDisclaimerOpened] = useState(false);
const [disclaimerManifest, setDisclaimerManifest] = useState<AppManifest>();
const [dismissedManifests, setDismissedManifests] = useDismissedManifests();
const [dismissedManifests, setDismissedManifests] = useAtom(dismissedManifestsAtom);

useEffect(() => {
if (disclaimerManifest && !!dismissedManifests[disclaimerManifest.id]) {
Expand Down

0 comments on commit 3439e51

Please sign in to comment.