polish
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
export const useComposer = create((set) => ({
|
||||
interface ComposerState {
|
||||
open: boolean;
|
||||
reply: null;
|
||||
repost: { id: string; pubkey: string };
|
||||
toggleModal: (status: boolean) => void;
|
||||
setRepost: (id: string, pubkey: string) => void;
|
||||
clearRepost: () => void;
|
||||
}
|
||||
|
||||
export const useComposer = create<ComposerState>((set) => ({
|
||||
open: false,
|
||||
repost: { id: null, pubkey: null },
|
||||
reply: null,
|
||||
repost: { id: null, pubkey: null },
|
||||
toggleModal: (status: boolean) => {
|
||||
set({ open: status });
|
||||
if (!status) {
|
||||
|
||||
@@ -64,9 +64,9 @@ export const OPENGRAPH = {
|
||||
};
|
||||
|
||||
export const FULL_RELAYS = [
|
||||
"wss://relay.damus.io",
|
||||
"wss://relay.nostr.band/all",
|
||||
"wss://relayable.org",
|
||||
"wss://nostr.mutinywallet.com",
|
||||
"wss://relay.damus.io",
|
||||
"wss://relay.nostrgraph.net",
|
||||
"wss://relay.nostr.band/all",
|
||||
"wss://nostr.mutinywallet.com",
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import { create } from "zustand";
|
||||
|
||||
interface NoteState {
|
||||
hasNewNote: boolean;
|
||||
toggleHasNewNote: (by: boolean) => void;
|
||||
toggleHasNewNote: (status: boolean) => void;
|
||||
}
|
||||
|
||||
export const useNote = create<NoteState>((set) => ({
|
||||
|
||||
Reference in New Issue
Block a user