diff --git a/src/frontend/src/components/common/crashErrorComponent/index.tsx b/src/frontend/src/components/common/crashErrorComponent/index.tsx index e9d00f9ab..75ee8cefe 100644 --- a/src/frontend/src/components/common/crashErrorComponent/index.tsx +++ b/src/frontend/src/components/common/crashErrorComponent/index.tsx @@ -51,7 +51,7 @@ export default function CrashErrorComponent({ target="_blank" rel="noopener noreferrer" > - diff --git a/src/frontend/src/components/ui/button.tsx b/src/frontend/src/components/ui/button.tsx index 2c9d0a14c..46886b316 100644 --- a/src/frontend/src/components/ui/button.tsx +++ b/src/frontend/src/components/ui/button.tsx @@ -53,6 +53,7 @@ export interface ButtonProps asChild?: boolean; loading?: boolean; unstyled?: boolean; + ignoreTitleCase?: boolean; } function toTitleCase(text: string) { @@ -74,6 +75,7 @@ const Button = React.forwardRef( disabled, asChild = false, children, + ignoreTitleCase = false, ...props }, ref, @@ -81,7 +83,7 @@ const Button = React.forwardRef( const Comp = asChild ? Slot : "button"; let newChildren = children; if (typeof children === "string") { - newChildren = toTitleCase(children); + newChildren = ignoreTitleCase ? children : toTitleCase(children); } return ( <>