feat: use latest nostr sdk

This commit is contained in:
2024-10-23 10:16:56 +07:00
parent cc7de41bfd
commit 172566028b
21 changed files with 596 additions and 240 deletions

View File

@@ -74,6 +74,7 @@ export function Column({ column }: { column: LumeColumn }) {
<div className="flex flex-col gap-px size-full">
<Header
label={column.label}
webviewLabel={webviewLabel}
name={column.name}
account={column.account}
/>
@@ -85,9 +86,10 @@ export function Column({ column }: { column: LumeColumn }) {
function Header({
label,
webviewLabel,
name,
account,
}: { label: string; name: string; account?: string }) {
}: { label: string; webviewLabel: string; name: string; account?: string }) {
const [title, setTitle] = useState("");
const [isChanged, setIsChanged] = useState(false);
@@ -100,7 +102,7 @@ function Header({
MenuItem.new({
text: "Reload",
action: async () => {
await commands.reloadColumn(label);
await commands.reloadColumn(webviewLabel);
},
}),
PredefinedMenuItem.new({ item: "Separator" }),