Skip to content

Commit

Permalink
chore(clerk-js,types): Update names of descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Oct 2, 2023
1 parent 9fc4ae6 commit 5a41fef
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 50 deletions.
88 changes: 44 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/clerk-js/src/ui/customizables/elementDescriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ export const APPEARANCE_KEYS = containsAllElementsConfigKeys([

'tableHead',

'paginationPageButton',
'paginationInfoText',
'paginationButton',
'paginationRowText',

'selectButton',
'selectSearchInput',
Expand Down
4 changes: 2 additions & 2 deletions packages/clerk-js/src/ui/elements/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const PageButton = (props: PropsOfComponent<typeof Button> & { isActive?: boolea
},
sx,
]}
elementDescriptor={descriptors.paginationPageButton}
elementDescriptor={descriptors.paginationButton}
{...rest}
/>
);
Expand All @@ -53,7 +53,7 @@ const RowInformation = (props: RowInfoProps) => {
} = props;

return (
<Text elementDescriptor={descriptors.paginationInfoText}>
<Text elementDescriptor={descriptors.paginationRowText}>
<Text
as='span'
colorScheme='inherit'
Expand Down
4 changes: 2 additions & 2 deletions packages/types/src/appearance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ export type ElementsConfig = {

tableHead: WithOptions<never, never, never>;

paginationPageButton: WithOptions<never, never, never>;
paginationInfoText: WithOptions<never, never, never>;
paginationButton: WithOptions<never, never, never>;
paginationRowText: WithOptions<never, never, never>;

selectButton: WithOptions<SelectId, never, never>;
selectSearchInput: WithOptions<SelectId, never, never>;
Expand Down

0 comments on commit 5a41fef

Please sign in to comment.