mirror of
https://github.com/coder/coder.git
synced 2026-10-24 01:26:25 +08:00
This implements an initial route for the workspaces page at `/workspaces/{user}/{workspace}`, and an additional storybook entry:
<img width="1723" alt="image" src="https://user-images.githubusercontent.com/88213859/153271281-801a5889-f60e-458c-809f-396a2d6385fa.png">
Just the header is rendering right now. Will be adding the additional sections prototyped in #219 in subsequent PRs
Related to https://github.com/coder/coder/issues/67
18 lines
420 B
TypeScript
18 lines
420 B
TypeScript
import { Story } from "@storybook/react"
|
|
import React from "react"
|
|
import { Workspace, WorkspaceProps } from "./Workspace"
|
|
import { MockWorkspace } from "../../test_helpers"
|
|
|
|
export default {
|
|
title: "Workspace",
|
|
component: Workspace,
|
|
argTypes: {},
|
|
}
|
|
|
|
const Template: Story<WorkspaceProps> = (args) => <Workspace {...args} />
|
|
|
|
export const Example = Template.bind({})
|
|
Example.args = {
|
|
workspace: MockWorkspace,
|
|
}
|