This commit is contained in:
2023-09-19 10:01:13 +01:00
parent 04239123bb
commit 4b2161369d
12 changed files with 42 additions and 65 deletions

View File

@ -25,8 +25,8 @@ import useLogin from "Hooks/useLogin";
type Cols = "notes" | "articles" | "media" | "streams" | "notifications";
interface DeckScope {
thread?: NostrLink,
setThread: (e?: NostrLink) => void
thread?: NostrLink;
setThread: (e?: NostrLink) => void;
}
export const DeckContext = createContext<DeckScope | undefined>(undefined);
@ -35,7 +35,7 @@ export function SnortDeckLayout() {
const login = useLogin();
const navigate = useNavigate();
const [deckScope, setDeckScope] = useState<DeckScope>({
setThread: (e?: NostrLink) => setDeckScope(s => ({ ...s, thread: e }))
setThread: (e?: NostrLink) => setDeckScope(s => ({ ...s, thread: e })),
});
useLoginFeed();