From 1f442418f8abbcea4253ee612ef6a97145d242a6 Mon Sep 17 00:00:00 2001 From: aeschi Date: Tue, 23 Jul 2024 13:59:02 +0200 Subject: [PATCH] feat: refactor and prettier run --- src/App.tsx | 4 ++-- src/components/buttons/primary.tsx | 6 ++++-- src/components/buttons/secondary.tsx | 6 ++++-- src/components/{buttons => }/icons/send-icon.tsx | 0 4 files changed, 10 insertions(+), 6 deletions(-) rename src/components/{buttons => }/icons/send-icon.tsx (100%) diff --git a/src/App.tsx b/src/App.tsx index 2d0d3a5..a1f68ed 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,10 +1,10 @@ -import { SendIcon } from "./components/buttons/icons/send-icon"; +import { SendIcon } from "./components/icons/send-icon"; import { PrimaryButton } from "./components/buttons/primary"; import { SecondaryButton } from "./components/buttons/secondary"; export function App() { return ( -
+

BärGPT - KI Testumgebung

= ({ disabled, type = "button", ariaLabel, + title, }) => { return ( diff --git a/src/components/buttons/secondary.tsx b/src/components/buttons/secondary.tsx index f493794..f9a03b4 100644 --- a/src/components/buttons/secondary.tsx +++ b/src/components/buttons/secondary.tsx @@ -6,6 +6,7 @@ export interface PrimaryButtonProps { disabled?: boolean; type?: "button" | "submit"; ariaLabel?: string; + title?: string; isLoading?: boolean; } @@ -15,15 +16,16 @@ export const SecondaryButton: React.FC = ({ disabled, type = "button", ariaLabel, + title, }) => { return ( diff --git a/src/components/buttons/icons/send-icon.tsx b/src/components/icons/send-icon.tsx similarity index 100% rename from src/components/buttons/icons/send-icon.tsx rename to src/components/icons/send-icon.tsx