mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
For black-triangle and alpha builds, we won't be able to create projects in the UI, because they require collecting and tar'ing a set of assets associated with the project - so the CLI is going to be our entry point for creating projects. This shifts the UI to remove the 'Create Project' button, and adds a prompt to copy a command to run. __Before:__ <img width="1134" alt="image" src="https://user-images.githubusercontent.com/88213859/153534269-58dc95bd-0417-4bed-8e62-e2b6f479da61.png"> __After:__ 
21 lines
497 B
TypeScript
21 lines
497 B
TypeScript
import { Story } from "@storybook/react"
|
|
import React from "react"
|
|
import { CodeExample, CodeExampleProps } from "./CodeExample"
|
|
|
|
const sampleCode = `echo "Hello, world"`
|
|
|
|
export default {
|
|
title: "CodeExample",
|
|
component: CodeExample,
|
|
argTypes: {
|
|
code: { control: "string", defaultValue: sampleCode },
|
|
},
|
|
}
|
|
|
|
const Template: Story<CodeExampleProps> = (args: CodeExampleProps) => <CodeExample {...args} />
|
|
|
|
export const Example = Template.bind({})
|
|
Example.args = {
|
|
code: sampleCode,
|
|
}
|