From 63c97f5a6d8f55eb7583ad975ce12a20d6478273 Mon Sep 17 00:00:00 2001 From: Nicolas Le Cam Date: Tue, 15 Oct 2024 20:59:28 +0200 Subject: [PATCH] Change HeaderIconWrapper so that it get its icon passed as a children instead of a props (#28723) Signed-off-by: Nicolas Le Cam --- .../channel_header.test.tsx.snap | 527 ++++++++---------- .../channel_header/channel_header.tsx | 15 +- .../channel_header/channel_info_button.tsx | 5 +- .../components/header_icon_wrapper.test.tsx | 2 +- .../components/header_icon_wrapper.tsx | 6 +- .../channels/src/components/search/search.tsx | 33 +- .../channel_header_plug.tsx | 20 +- 7 files changed, 277 insertions(+), 331 deletions(-) diff --git a/webapp/channels/src/components/channel_header/__snapshots__/channel_header.test.tsx.snap b/webapp/channels/src/components/channel_header/__snapshots__/channel_header.test.tsx.snap index 1e9d23076949..5361f1d1fb57 100644 --- a/webapp/channels/src/components/channel_header/__snapshots__/channel_header.test.tsx.snap +++ b/webapp/channels/src/components/channel_header/__snapshots__/channel_header.test.tsx.snap @@ -74,14 +74,13 @@ exports[`components/ChannelHeader should match snapshot with last active display - } onClick={[Function]} tooltip="Channel files" - /> + > + +
- } onClick={[Function]} tooltip="Channel files" - /> + > + +
-