Skip to content

Commit

Permalink
vertical board names
Browse files Browse the repository at this point in the history
  • Loading branch information
Jipperism committed Nov 6, 2023
1 parent 0ea4f89 commit 9823d14
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pages/boards/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { supabase } from "@/lib/supabase";
import { Center, Heading, Spinner } from "@chakra-ui/react";
import { Center, Heading, Spinner, VStack } from "@chakra-ui/react";
import { HyperboardEntity } from "@/types/database-entities";
import { useQuery } from "@tanstack/react-query";
import Link from "next/link";
Expand Down Expand Up @@ -27,13 +27,15 @@ export const Index = () => {

return (
<Center py={8}>
{data.data.map((board: HyperboardEntity) => (
<Link href={`/boards/${board.id}`} key={board.id}>
<Heading size={"lg"} textStyle={"secondary"}>
{board.name}
</Heading>
</Link>
))}
<VStack spacing={4}>
{data.data.map((board: HyperboardEntity) => (
<Link href={`/boards/${board.id}`} key={board.id}>
<Heading size={"lg"} textStyle={"secondary"}>
{board.name}
</Heading>
</Link>
))}
</VStack>
</Center>
);
};
Expand Down

0 comments on commit 9823d14

Please sign in to comment.