chore: follow-up #236

This commit is contained in:
reya
2024-10-07 15:12:30 +07:00
parent 090a815f99
commit 8c6aea8050
7 changed files with 83 additions and 81 deletions
@@ -10,7 +10,7 @@ import { resolveResource } from "@tauri-apps/api/path";
import { readTextFile } from "@tauri-apps/plugin-fs";
import { useCallback } from "react";
export const Route = createLazyFileRoute("/columns/_layout/gallery")({
export const Route = createLazyFileRoute("/columns/_layout/launchpad")({
component: Screen,
});
@@ -116,7 +116,8 @@ function MyGroups() {
const renderItem = useCallback(
(item: NostrEvent) => {
const name = item.tags.filter((tag) => tag[0] === "d")[0][1] ?? "unnamed";
const name =
item.tags.find((tag) => tag[0] === "title")?.[1] || "Unnamed";
return (
<div
@@ -225,7 +226,8 @@ function MyInterests() {
const renderItem = useCallback(
(item: NostrEvent) => {
const name = item.tags.filter((tag) => tag[0] === "d")[0][1] ?? "unnamed";
const name =
item.tags.find((tag) => tag[0] === "title")?.[1] || "Unnamed";
return (
<div