A bunch more small things

This commit is contained in:
Gregory Schier
2023-02-25 23:04:31 -08:00
parent 83bb18df03
commit d85c021305
25 changed files with 1749 additions and 918 deletions

View File

@@ -1,14 +1,15 @@
import { Link, useParams } from 'react-router-dom';
import { Link } from 'react-router-dom';
import { useWorkspaces } from '../hooks/useWorkspaces';
import { Button } from '../components/Button';
export function Workspaces() {
const workspaces = useWorkspaces();
return (
<ul className="p-12">
{workspaces.data?.map((w) => (
<Link key={w.id} to={`/workspaces/${w.id}`}>
<Button as={Link} key={w.id} to={`/workspaces/${w.id}`}>
{w.name}
</Link>
</Button>
))}
</ul>
);