From 7ff63cfb5fb4e98ac2fb92cffd49384ff92ec7ef Mon Sep 17 00:00:00 2001 From: QiShaoXuan Date: Wed, 8 Feb 2023 18:20:51 +0800 Subject: [PATCH] fix: lint error --- .../app/src/components/workspace-setting/ExportPage.tsx | 6 +++--- packages/app/src/ui/button/Loading.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/app/src/components/workspace-setting/ExportPage.tsx b/packages/app/src/components/workspace-setting/ExportPage.tsx index 9f48836129..7975adc497 100644 --- a/packages/app/src/components/workspace-setting/ExportPage.tsx +++ b/packages/app/src/components/workspace-setting/ExportPage.tsx @@ -1,10 +1,10 @@ +import { WorkspaceUnit } from '@affine/datacenter'; import { useTranslation } from '@affine/i18n'; import { Wrapper } from '@/ui/layout'; import { Button } from '@/ui/button'; - -export const ExportPage = () => { +export const ExportPage = ({ workspace }: { workspace: WorkspaceUnit }) => { const { t } = useTranslation(); - + console.log(workspace); return ( <> {t('Export Description')} diff --git a/packages/app/src/ui/button/Loading.tsx b/packages/app/src/ui/button/Loading.tsx index 8bada7628a..918ae61e1d 100644 --- a/packages/app/src/ui/button/Loading.tsx +++ b/packages/app/src/ui/button/Loading.tsx @@ -4,7 +4,7 @@ import { getButtonColors } from './utils'; export const LoadingContainer = styled('div')>( ({ theme, type = 'default' }) => { - const { color } = getButtonColors(theme, type); + const { color } = getButtonColors(theme, type, false); return ` margin: 0px auto; width: 38px;