Skip to content

Commit

Permalink
refactored the useCssComponentHash
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeriaMaltseva committed Dec 20, 2024
1 parent 6cc2fa0 commit 5528a19
Show file tree
Hide file tree
Showing 29 changed files with 1,991 additions and 4,501 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ export const useCssComponentHash = (componentName: string): string => {
const context = useContext(ConfigContext)
const prefix = context.getPrefixCls(componentName, '')

const tableHashId = useTableStyle(prefix)[1]
const paginationHashId = usePaginationStyle(prefix)[1]

let hashId
switch (componentName) {
case 'table':
hashId = useTableStyle(prefix)[1]
hashId = tableHashId
break
case 'pagination':
hashId = usePaginationStyle(prefix)[1]
hashId = paginationHashId
break

default:
hashId = ''
}

return hashId
Expand Down

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/079851e6-cdc2-4d78-8562-542ec25a2368/vendor.js

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/163d2bb3-7b72-4339-92ad-285d557f81cc/105.js

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions public/build/163d2bb3-7b72-4339-92ad-285d557f81cc/core-dll.css

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/163d2bb3-7b72-4339-92ad-285d557f81cc/core-dll.js

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions public/build/163d2bb3-7b72-4339-92ad-285d557f81cc/entrypoints.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 5528a19

Please sign in to comment.