File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -233,7 +233,6 @@ export function ChannelContextMenuItems({
233233function SectionHeaderActions ( {
234234 browseAriaLabel,
235235 browseTestId,
236- className,
237236 createAriaLabel,
238237 hasUnread,
239238 onBrowse,
@@ -242,24 +241,21 @@ function SectionHeaderActions({
242241} : {
243242 browseAriaLabel : string ;
244243 browseTestId ?: string ;
245- className ?: string ;
246244 createAriaLabel : string ;
247245 hasUnread ?: boolean ;
248246 onBrowse ?: ( ) => void ;
249247 onCreateClick ?: ( ) => void ;
250248 onMarkAllRead ?: ( ) => void ;
251249} ) {
252250 return (
253- < div
254- className = { cn (
255- "absolute right-1 top-1/2 z-10 flex -translate-y-1/2 items-center gap-0.5" ,
256- className ,
257- ) }
258- >
251+ < div className = "absolute right-1 top-1/2 z-10 flex -translate-y-1/2 items-center gap-0.5" >
259252 { hasUnread && onMarkAllRead ? (
260253 < button
261254 aria-label = "Mark all as read"
262- className = { SECTION_ICON_BUTTON_CLASS }
255+ className = { cn (
256+ SECTION_ICON_BUTTON_CLASS ,
257+ SECTION_ACTION_VISIBILITY_CLASS ,
258+ ) }
263259 onClick = { onMarkAllRead }
264260 title = "Mark all as read"
265261 type = "button"
@@ -449,7 +445,6 @@ export function ChannelGroupSection({
449445 < SectionHeaderActions
450446 browseAriaLabel = { browseAriaLabel }
451447 browseTestId = { browseTestId }
452- className = { SECTION_ACTION_VISIBILITY_CLASS }
453448 createAriaLabel = { createAriaLabel }
454449 hasUnread = { hasUnread }
455450 onBrowse = { onBrowse }
You can’t perform that action at this time.
0 commit comments