mirror of
https://github.com/coder/coder.git
synced 2026-11-12 20:50:29 +08:00
* XService: GetTemplateParameters * Rich parameter input shows up * Render option icons * Icons * WIP * For testing purposes: template * Fix: useState * WIP: dynamic validation * Yup validation * Translations * Remove temporary template * make fmt * WIP * Fix: tests * Fix: fmt * URL param * Refactor * Test: rich param value * Storybook * Fix * Refactor for testing purposes * Typo * test: string validation * Button: build parameters * Full screen page * Fix: navigate * XState done * refactor: postWorkspaceBuild * RichParameterInput rendered * Fix: bad initial value * Validation works * Maybe * Fix * Go back button * GoBack button * Form * Fix * Storybook * Fix: CreateWorkspacePage * fmt * Test * ns * fmt * All tests * feat: WorkspaceActions depend on template parameters * Fix
20 lines
381 B
TypeScript
20 lines
381 B
TypeScript
import Button from "@material-ui/core/Button"
|
|
|
|
interface GoBackButtonProps {
|
|
onClick: () => void
|
|
}
|
|
|
|
export const Language = {
|
|
ariaLabel: "Go back",
|
|
}
|
|
|
|
export const GoBackButton: React.FC<
|
|
React.PropsWithChildren<GoBackButtonProps>
|
|
> = ({ onClick }) => {
|
|
return (
|
|
<Button onClick={onClick} size="small" aria-label={Language.ariaLabel}>
|
|
Go back
|
|
</Button>
|
|
)
|
|
}
|