This commit is contained in:
Maciej Caderek
2022-02-22 03:26:31 +01:00
parent 34b352c6c4
commit 2baf02dd60
16 changed files with 151 additions and 119 deletions

View File

@@ -10,9 +10,9 @@ const pieces = Object.entries(piecesSets).map(([key, data]) => ({
img: data.nw,
})) as { key: PiecesStyle; img: string }[];
const Pieces: Component<{ handlers: Handlers }> = (props) => {
const Pieces: Component<{ handlers: Handlers; class?: string }> = (props) => {
return (
<Scrollable class="pieces">
<Scrollable class={"pieces" + (props.class ? ` ${props.class}` : "")}>
{
<For each={pieces}>
{(item) => (