Skip to content

Commit

Permalink
fix(next): fix usePrefixCls
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Aug 17, 2021
1 parent 8c4651f commit da058e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/src/__builtins__/hooks/usePrefixCls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export const usePrefixCls = (
}
) => {
const getContext = ConfigProvider['getContext']
return props?.prefix ?? getContext()?.prefix ?? `next${tag ? `-${tag}` : ''}`
const prefix = props?.prefix ?? getContext()?.prefix ?? 'next-'
return `${prefix}${tag}`
}

0 comments on commit da058e6

Please sign in to comment.