Files
coder/site/src/components/GoBackButton/GoBackButton.tsx
T
Marcin Tojek f9ae105a26 feat: Adjust forms to include Rich Parameters (#5856)
* 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
2023-02-01 18:13:11 +01:00

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>
)
}