Back to React

This commit is contained in:
Gregory Schier
2023-03-13 09:50:49 -07:00
parent fa1f33a2ac
commit c6653af782
25 changed files with 377 additions and 616 deletions

View File

@@ -3,14 +3,13 @@ import { Heading } from '../components/Heading';
import { VStack } from '../components/Stacks';
import { useWorkspaces } from '../hooks/useWorkspaces';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function Workspaces(props: { path: string }) {
export function Workspaces() {
const workspaces = useWorkspaces();
return (
<VStack as="ul" className="p-12">
<Heading>Workspaces</Heading>
{workspaces.data?.map((w) => (
<ButtonLink key={w.id} color="gray" href={`/workspaces/${w.id}`}>
<ButtonLink key={w.id} color="gray" to={`/workspaces/${w.id}`}>
{w.name}
</ButtonLink>
))}