Skip to content

Commit

Permalink
fix[progress]: fix missing className prop
Browse files Browse the repository at this point in the history
  • Loading branch information
eizyc committed Mar 14, 2024
1 parent 4865b46 commit 2cd3040
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Progress/progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ export const Progress: FC<PropsWithChildren<ProgressProps>> = (props) => {
styles,
showInfo,
size,
status
status,
className
} = props

const _status = useMemo(()=>{
return percent === 100 ? 'success': status
}, [percent, status])

const classes = classnames(prefixCls,`${prefixCls}-status-${_status}`)
const classes = classnames(prefixCls, className, `${prefixCls}-status-${_status}`)

const innerClasses = classnames(`${prefixCls}-inner`)

Expand Down

0 comments on commit 2cd3040

Please sign in to comment.