update repost
This commit is contained in:
20
src/stores/composer.tsx
Normal file
20
src/stores/composer.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
export const useComposer = create((set) => ({
|
||||
open: false,
|
||||
repost: { id: null, pubkey: null },
|
||||
reply: null,
|
||||
toggleModal: (status: boolean) => {
|
||||
set({ open: status });
|
||||
if (!status) {
|
||||
set({ repost: { id: null, pubkey: null } });
|
||||
}
|
||||
},
|
||||
setRepost: (id: string, pubkey: string) => {
|
||||
set({ repost: { id: id, pubkey: pubkey } });
|
||||
set({ open: true });
|
||||
},
|
||||
clearRepost: () => {
|
||||
set({ repost: { id: null, pubkey: null } });
|
||||
},
|
||||
}));
|
||||
@@ -1,6 +1,6 @@
|
||||
export const APP_VERSION = "1.0.0";
|
||||
|
||||
export const DEFAULT_AVATAR = "https://void.cat/d/PZcdCxNc24rCCxV8QXbdFQ";
|
||||
export const DEFAULT_AVATAR = "https://void.cat/d/5VKmKyuHyxrNMf9bWSVPih";
|
||||
|
||||
export const OPENGRAPH_KEY = "9EJG4SY-19Q4M5J-H8R29C9-091XPCC";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user