mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
feat(desktop): always show channel section search/add buttons (#856)
Signed-off-by: Tyler Longwell <tlongwell@squareup.com>
This commit is contained in:
@@ -233,7 +233,6 @@ export function ChannelContextMenuItems({
|
||||
function SectionHeaderActions({
|
||||
browseAriaLabel,
|
||||
browseTestId,
|
||||
className,
|
||||
createAriaLabel,
|
||||
hasUnread,
|
||||
onBrowse,
|
||||
@@ -242,7 +241,6 @@ function SectionHeaderActions({
|
||||
}: {
|
||||
browseAriaLabel: string;
|
||||
browseTestId?: string;
|
||||
className?: string;
|
||||
createAriaLabel: string;
|
||||
hasUnread?: boolean;
|
||||
onBrowse?: () => void;
|
||||
@@ -250,16 +248,14 @@ function SectionHeaderActions({
|
||||
onMarkAllRead?: () => void;
|
||||
}) {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"absolute right-1 top-1/2 z-10 flex -translate-y-1/2 items-center gap-0.5",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="absolute right-1 top-1/2 z-10 flex -translate-y-1/2 items-center gap-0.5">
|
||||
{hasUnread && onMarkAllRead ? (
|
||||
<button
|
||||
aria-label="Mark all as read"
|
||||
className={SECTION_ICON_BUTTON_CLASS}
|
||||
className={cn(
|
||||
SECTION_ICON_BUTTON_CLASS,
|
||||
SECTION_ACTION_VISIBILITY_CLASS,
|
||||
)}
|
||||
onClick={onMarkAllRead}
|
||||
title="Mark all as read"
|
||||
type="button"
|
||||
@@ -449,7 +445,6 @@ export function ChannelGroupSection({
|
||||
<SectionHeaderActions
|
||||
browseAriaLabel={browseAriaLabel}
|
||||
browseTestId={browseTestId}
|
||||
className={SECTION_ACTION_VISIBILITY_CLASS}
|
||||
createAriaLabel={createAriaLabel}
|
||||
hasUnread={hasUnread}
|
||||
onBrowse={onBrowse}
|
||||
|
||||
Reference in New Issue
Block a user