From d8ca37a38ef404860add8f4d1b11b98299fdfaa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20N=C3=B6ssing?= Date: Tue, 3 Sep 2024 16:20:26 +0200 Subject: [PATCH] add icon from lib for spinner --- src/components/files/FileListItem.tsx | 4 +++- src/components/loading/IconSpinner.tsx | 18 ++++----------- .../react-hook-form/FormSubmitFeedback.tsx | 2 +- tailwind-preset.ts | 23 ------------------- 4 files changed, 8 insertions(+), 39 deletions(-) diff --git a/src/components/files/FileListItem.tsx b/src/components/files/FileListItem.tsx index 8b6aaf1c..c8f8bed8 100644 --- a/src/components/files/FileListItem.tsx +++ b/src/components/files/FileListItem.tsx @@ -68,7 +68,9 @@ export function FileListItem({ files.icon.container.default, )} > - + ) : (
- - + /> ) } diff --git a/src/components/react-hook-form/FormSubmitFeedback.tsx b/src/components/react-hook-form/FormSubmitFeedback.tsx index 4c19dde0..53bb9f49 100644 --- a/src/components/react-hook-form/FormSubmitFeedback.tsx +++ b/src/components/react-hook-form/FormSubmitFeedback.tsx @@ -1,4 +1,4 @@ -import IconCheckCircle from '@aboutbits/react-material-icons/dist/IconCheckCircleRounded' +import IconCheckCircle from '@aboutbits/react-material-icons/dist/IconCheckCircleRoundedFilled' import classNames from 'classnames' import { ComponentType, ReactElement, ReactNode } from 'react' import { useInternationalization, useTheme } from '../../framework' diff --git a/tailwind-preset.ts b/tailwind-preset.ts index 7fc724a2..03f0266a 100644 --- a/tailwind-preset.ts +++ b/tailwind-preset.ts @@ -102,29 +102,6 @@ export default { lineHeight: { 12: '3rem', }, - keyframes: { - spinner: { - '0%': { - strokeDasharray: '0 100', - strokeDashoffset: '25', - }, - '50%': { - strokeDasharray: `100 0`, - strokeDashoffset: '25', - }, - '50.1%': { - strokeDasharray: '100 0', - strokeDashoffset: '125', - }, - '100%': { - strokeDasharray: '0 100', - strokeDashoffset: '25', - }, - }, - }, - animation: { - spinner: 'spinner 2s cubic-bezier(0.88, 0, 0.58, 1) infinite', - }, }, }, } satisfies Config