mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-30 06:02:00 +02:00
Add toggle for pretty view
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import { Link } from 'react-router-dom';
|
||||
import { useWorkspaces } from '../hooks/useWorkspaces';
|
||||
import { Button } from '../components/Button';
|
||||
import { ButtonLink } from '../components/ButtonLink';
|
||||
|
||||
export function Workspaces() {
|
||||
const workspaces = useWorkspaces();
|
||||
return (
|
||||
<ul className="p-12">
|
||||
{workspaces.data?.map((w) => (
|
||||
<Button as={Link} key={w.id} to={`/workspaces/${w.id}`}>
|
||||
<ButtonLink key={w.id} to={`/workspaces/${w.id}`}>
|
||||
{w.name}
|
||||
</Button>
|
||||
</ButtonLink>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user