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 6, 2023
1 parent 087bb11 commit e7f1993
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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 e7f1993

Please sign in to comment.