diff --git a/site/src/components/FormFooter/FormFooter.tsx b/site/src/components/FormFooter/FormFooter.tsx index 7107f7864b..a7b5c48ba1 100644 --- a/site/src/components/FormFooter/FormFooter.tsx +++ b/site/src/components/FormFooter/FormFooter.tsx @@ -3,6 +3,11 @@ import { makeStyles } from "@material-ui/core/styles" import React from "react" import { LoadingButton } from "../LoadingButton/LoadingButton" +const Language = { + cancelLabel: "Cancel", + defaultSubmitLabel: "Submit", +} + export interface FormFooterProps { onCancel: () => void isLoading: boolean @@ -22,12 +27,16 @@ const useStyles = makeStyles(() => ({ }, })) -export const FormFooter: React.FC = ({ onCancel, isLoading, submitLabel = "Submit" }) => { +export const FormFooter: React.FC = ({ + onCancel, + isLoading, + submitLabel = Language.defaultSubmitLabel, +}) => { const styles = useStyles() return (
{submitLabel}