update repost

This commit is contained in:
Ren Amamiya
2023-06-18 15:55:07 +07:00
parent 7ec284d4a5
commit d87ca7b75b
9 changed files with 79 additions and 71 deletions

20
src/stores/composer.tsx Normal file
View 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 } });
},
}));

View File

@@ -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";