From 3f58fac4a2a35e34f4c9ebb23b7e949f2df1dbe9 Mon Sep 17 00:00:00 2001 From: a Date: Tue, 24 Jun 2025 18:44:08 -0500 Subject: [PATCH] noot --- src/components/characters.tsx | 145 ++++++++++++++++++++++++++++------ 1 file changed, 121 insertions(+), 24 deletions(-) diff --git a/src/components/characters.tsx b/src/components/characters.tsx index 2c45fde..fc0921e 100644 --- a/src/components/characters.tsx +++ b/src/components/characters.tsx @@ -12,7 +12,7 @@ import { useRole, } from '@floating-ui/react' import Fuse from 'fuse.js' -import { useAtom } from 'jotai' +import { useAtom, useAtomValue } from 'jotai' import { useMemo, useState } from 'react' import { TricksterCharacter } from '../lib/trickster' import { charactersAtom, selectedCharacterAtom } from '../state/atoms' @@ -46,6 +46,8 @@ export const CharacterCard = ({ character, noTopBorder = false }: { character: T const { getReferenceProps, getFloatingProps } = useInteractions([hover, focus, dismiss, role]) const [selectedCharacter, setSelectedCharacter] = useAtom(selectedCharacterAtom) + const isBank = character.base_job === -8 + return ( <> + + + ) +} + export const CharacterRoulette = () => { const [{ data: rawCharacters }] = useAtom(charactersAtom) @@ -137,25 +232,27 @@ export const CharacterRoulette = () => { }) .map(x => { return ( -
- - -
+ ) }) return ( <> -
- { - setSearch(e.target.value) - }} - > -
- {searchResults ? searchResults : null} +
+ +
+ { + setSearch(e.target.value) + }} + /> +
+ {searchResults.length > 0 ? searchResults : ( + search ?
No characters matched search
: null + )} +