From c1b09dc3a2107465a2fb2c34fc9b298aab46a57e Mon Sep 17 00:00:00 2001 From: Ladislav Martincik Date: Wed, 10 Jul 2024 22:04:09 +0200 Subject: [PATCH] Extract styles for external overriding --- src/components/dialect/icons/DialectLogo.tsx | 67 ------- src/components/dialect/icons/HeliusLogo.tsx | 158 ---------------- src/components/dialect/icons/PhantomLogo.tsx | 38 ---- src/components/dialect/ui/ActionContainer.tsx | 10 +- src/components/dialect/ui/ActionLayout.tsx | 60 ++++--- .../dialect/ui/ActionLayoutSkeleton.tsx | 2 +- src/components/dialect/ui/Badge.tsx | 15 +- src/components/dialect/ui/Button.tsx | 8 +- src/components/dialect/ui/PulseLoader.tsx | 2 +- src/components/dialect/ui/Snackbar.tsx | 6 +- .../dialect/ui/SolanaWalletButton.tsx | 12 +- src/main.css | 168 ++++++++++++++++++ 12 files changed, 222 insertions(+), 324 deletions(-) delete mode 100644 src/components/dialect/icons/DialectLogo.tsx delete mode 100644 src/components/dialect/icons/HeliusLogo.tsx delete mode 100644 src/components/dialect/icons/PhantomLogo.tsx diff --git a/src/components/dialect/icons/DialectLogo.tsx b/src/components/dialect/icons/DialectLogo.tsx deleted file mode 100644 index ff5fa30..0000000 --- a/src/components/dialect/icons/DialectLogo.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import { SVGProps } from 'react'; -const SvgComponent = (props: SVGProps) => ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - -); -export default SvgComponent; diff --git a/src/components/dialect/icons/HeliusLogo.tsx b/src/components/dialect/icons/HeliusLogo.tsx deleted file mode 100644 index 5cdae34..0000000 --- a/src/components/dialect/icons/HeliusLogo.tsx +++ /dev/null @@ -1,158 +0,0 @@ -import { SVGProps } from 'react'; - -const SvgComponent = (props: SVGProps) => ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -); - -export default SvgComponent; \ No newline at end of file diff --git a/src/components/dialect/icons/PhantomLogo.tsx b/src/components/dialect/icons/PhantomLogo.tsx deleted file mode 100644 index bce59f8..0000000 --- a/src/components/dialect/icons/PhantomLogo.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { SVGProps } from 'react'; - -const SvgComponent = (props: SVGProps) => ( - - - - - - - - - - -); -export default SvgComponent; diff --git a/src/components/dialect/ui/ActionContainer.tsx b/src/components/dialect/ui/ActionContainer.tsx index 44996cc..a84e6b1 100644 --- a/src/components/dialect/ui/ActionContainer.tsx +++ b/src/components/dialect/ui/ActionContainer.tsx @@ -226,8 +226,6 @@ export const ActionContainer = ({ init(); }, [initialApiUrl]); - console.log("Actions: ", action) - const buttons = useMemo( () => toSpliced(action?.actions @@ -240,8 +238,6 @@ export const ActionContainer = ({ [action, executionState.executingAction], ); - console.log("Buttons: ", buttons) - const inputs = useMemo( () => toSpliced(action?.actions @@ -264,7 +260,7 @@ export const ActionContainer = ({ please{' '} @@ -273,7 +269,7 @@ export const ActionContainer = ({ .