mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-29 05:31:51 +02:00
Back to React
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user