Skip to content

feat: Initial workspaces page route + skeleton #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Feb 16, 2022
Merged
Prev Previous commit
Next Next commit
More routing
  • Loading branch information
bryphe-coder committed Feb 9, 2022
commit 07c7f7063ee426439637a826c557267d9b147e34
5 changes: 4 additions & 1 deletion site/pages/workspaces/[user]/[workspace].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ const WorkspacesPage: React.FC = () => {
const router = useRouter()
const { me, signOut } = useUser(true)

const { user, workspace } = router.query
const { user: userQueryParam, workspace: workspaceQueryParam } = router.query

const userParam = firstOrDefault(userQueryParam, null)
const workspaceParam = firstOrDefault(workspaceQueryParam, null)

return (
<div className={styles.root}>
Expand Down