diff --git a/app/(app)/_layout/components/Search.tsx b/app/(app)/_layout/components/Search.tsx index d106856..a3ff1a4 100644 --- a/app/(app)/_layout/components/Search.tsx +++ b/app/(app)/_layout/components/Search.tsx @@ -3,16 +3,28 @@ import { Input } from "@/components/ui/input"; import { commandDialogAtom } from "./CommandDialog"; import { useAtom } from "jotai"; +import { Button } from "@/components/ui/button"; export default function Search() { const [open, setOpen] = useAtom(commandDialogAtom); return (
- setOpen(true)} - /> + /> */} +
); } diff --git a/components/TextRendering/EventMention.tsx b/components/TextRendering/EventMention.tsx index 80cd49b..69fe9d5 100644 --- a/components/TextRendering/EventMention.tsx +++ b/components/TextRendering/EventMention.tsx @@ -9,7 +9,7 @@ export default function EventMention({ mention }: EventMentionProps) { // const { user } = useProfile(mention); return ( - {`*\$${mention}`} + {`*\$${mention}`} ); } diff --git a/components/TextRendering/ProfileMention.tsx b/components/TextRendering/ProfileMention.tsx index 1bd959a..e7209c6 100644 --- a/components/TextRendering/ProfileMention.tsx +++ b/components/TextRendering/ProfileMention.tsx @@ -27,7 +27,7 @@ export default function ProfileMention({ mention }: ProfileMentionProps) { const profile = getProfile(mention); return ( - {`@${ + {`@${ profile?.name ?? mention }`} diff --git a/components/TextRendering/index.tsx b/components/TextRendering/index.tsx index d3d9ae9..31bad80 100644 --- a/components/TextRendering/index.tsx +++ b/components/TextRendering/index.tsx @@ -30,7 +30,7 @@ const RenderText = ({ text }: { text?: string }) => { if (specialValuesArray[index]?.match(urlRegex)) { specialElement = ( { } else if (specialValuesArray[index]?.match(hashtagRegex)) { specialElement = ( - + {specialValuesArray[index]}