Skip to content

Commit

Permalink
馃拕 style: Update Theme ConfigProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 authored and arvinxx committed Apr 24, 2024
1 parent 7e1130c commit 4145f88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layout/GlobalProvider/AppTheme.tsx
Expand Up @@ -5,6 +5,7 @@ import { App } from 'antd';
import { ThemeAppearance, createStyles } from 'antd-style';
import 'antd/dist/reset.css';
import Image from 'next/image';
import Link from 'next/link';
import { PropsWithChildren, ReactNode, memo, useEffect } from 'react';

import AntdStaticMethods from '@/components/AntdStaticMethods';
Expand Down Expand Up @@ -112,7 +113,7 @@ const AppTheme = memo<AppThemeProps>(
>
<GlobalStyle />
<AntdStaticMethods />
<ConfigProvider config={{ imgAs: Image, imgUnoptimized: true }}>
<ConfigProvider config={{ aAs: Link, imgAs: Image, imgUnoptimized: true }}>
<Container>{children}</Container>
</ConfigProvider>
</ThemeProvider>
Expand Down

0 comments on commit 4145f88

Please sign in to comment.