chore: remove account and memo

This commit is contained in:
Aslam H
2024-11-09 15:12:26 +07:00
parent b8336d50e6
commit fe5f3ac1b9
3 changed files with 54 additions and 49 deletions

View File

@@ -32,17 +32,16 @@ export function CommandPalette() {
}
export function RealCommandPalette() {
const { me } = useAccount({ root: { personalLinks: [], personalPages: [] } })
const { me } = useAccount({
root: { personalLinks: [{}], personalPages: [{}] },
})
const dialogRef = React.useRef<HTMLDivElement | null>(null)
const [inputValue, setInputValue] = React.useState("")
const [activePage, setActivePage] = React.useState("home")
const [open, setOpen] = useAtom(commandPaletteOpenAtom)
const actions = useCommandActions()
const commandGroups = React.useMemo(
() => me && createCommandGroups(actions, me),
[actions, me],
)
const commandGroups = createCommandGroups(actions)
const bounce = React.useCallback(() => {
if (dialogRef.current) {