From 073b000bc9bb97982fd103194ec30e0f965e41e7 Mon Sep 17 00:00:00 2001 From: Matej Lubej Date: Thu, 7 Mar 2024 11:05:22 +0100 Subject: [PATCH] Add StringUtils clsx --- frontend/src/components/Button/index.tsx | 11 ++++++----- frontend/src/components/Card/index.tsx | 3 ++- frontend/src/utils/string.utils.ts | 7 +++++++ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/Button/index.tsx b/frontend/src/components/Button/index.tsx index dce3b50..b5d3f88 100644 --- a/frontend/src/components/Button/index.tsx +++ b/frontend/src/components/Button/index.tsx @@ -1,5 +1,6 @@ import classes from './index.module.css' import { FC, MouseEventHandler, PropsWithChildren } from 'react' +import { StringUtils } from '../../utils/string.utils.ts' type ButtonSize = 'small' | 'medium' type ButtonColor = 'primary' | 'secondary' @@ -43,15 +44,15 @@ export const Button: FC = ({ type, }) => (