Skip to content

Commit a26cf0f

Browse files
authoredJan 24, 2025··
feat(clerk-js,types,localizations): Search members on OrganizationProfile (#4942)
1 parent 9dc8a67 commit a26cf0f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+243
-33
lines changed
 

‎.changeset/poor-rockets-look.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@clerk/localizations': patch
3+
'@clerk/clerk-js': patch
4+
'@clerk/shared': patch
5+
'@clerk/types': patch
6+
---
7+
8+
Introduced searching for members list on `OrganizationProfile`

‎packages/clerk-js/src/ui/common/NotificationCountBadge.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ import { animations } from '../styledSystem';
77
type NotificationCountBadgeProps = PropsOfComponent<typeof NotificationBadge> & {
88
notificationCount: number;
99
containerSx?: ThemableCssProp;
10+
shouldAnimate?: boolean;
1011
};
1112

1213
export const NotificationCountBadge = (props: NotificationCountBadgeProps) => {
13-
const { notificationCount, containerSx, ...restProps } = props;
14+
const { notificationCount, containerSx, shouldAnimate = true, ...restProps } = props;
1415
const prefersReducedMotion = usePrefersReducedMotion();
1516
const { t } = useLocalizations();
1617
const localeKey = t(localizationKeys('locale'));
1718
const formattedNotificationCount = formatToCompactNumber(notificationCount, localeKey);
1819

1920
const enterExitAnimation: ThemableCssProp = t => ({
20-
animation: prefersReducedMotion
21-
? 'none'
22-
: `${animations.notificationAnimation} ${t.transitionDuration.$textField} ${t.transitionTiming.$slowBezier} 0s 1 normal forwards`,
21+
animation:
22+
shouldAnimate && !prefersReducedMotion
23+
? `${animations.notificationAnimation} ${t.transitionDuration.$textField} ${t.transitionTiming.$slowBezier} 0s 1 normal forwards`
24+
: 'none',
2325
});
2426

2527
return (

0 commit comments

Comments
 (0)
Please sign in to comment.