Skip to content

Commit

Permalink
fix: createErrorBlock will lost the style cause treeshaking (#6551)
Browse files Browse the repository at this point in the history
fix: treeshaking 导致样式丢失
  • Loading branch information
hongxuWei authored Feb 22, 2024
1 parent 76e3583 commit 666f089
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/components/error-block/create-error-block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { mergeProps } from '../../utils/with-default-props'
import { NativeProps, withNativeProps } from '../../utils/native-props'
import { useConfig } from '../config-provider'
import type { ErrorBlockStatus, ImageRecord } from '.'
import './error-block.less'

const classPrefix = `adm-error-block`

Expand Down
1 change: 0 additions & 1 deletion src/components/error-block/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import './error-block.less'
import type { ReactNode } from 'react'
import { ErrorBlock } from './error-block'

Expand Down

0 comments on commit 666f089

Please sign in to comment.