mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:14:03 +01:00
Switch to Preact!!!
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { ButtonLink } from '../components/ButtonLink';
|
||||
import { Heading } from '../components/Heading';
|
||||
import { VStack } from '../components/Stacks';
|
||||
import { useWorkspaces } from '../hooks/useWorkspaces';
|
||||
import { ButtonLink } from '../components/ButtonLink';
|
||||
|
||||
export function Workspaces() {
|
||||
export function Workspaces(props: { path: string }) {
|
||||
const workspaces = useWorkspaces();
|
||||
return (
|
||||
<VStack as="ul" className="p-12">
|
||||
<Heading>Workspaces</Heading>
|
||||
{workspaces.data?.map((w) => (
|
||||
<ButtonLink key={w.id} color="gray" to={`/workspaces/${w.id}`}>
|
||||
<ButtonLink key={w.id} color="gray" href={`/workspaces/${w.id}`}>
|
||||
{w.name}
|
||||
</ButtonLink>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user