Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Convert apps/meteor/client/sidebar/header/index #25671

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Sidebar } from '@rocket.chat/fuselage';
import { useUser, useTranslation } from '@rocket.chat/ui-contexts';
import React, { memo } from 'react';
import React, { memo, ReactElement } from 'react';

import { useSidebarPaletteColor } from '../hooks/useSidebarPaletteColor';
import UserAvatarButton from './UserAvatarButton';
Expand All @@ -11,15 +11,15 @@ import Login from './actions/Login';
import Search from './actions/Search';
import Sort from './actions/Sort';

const HeaderWithData = () => {
const HeaderWithData = (): ReactElement => {
const user = useUser();
const t = useTranslation();
useSidebarPaletteColor();

return (
<>
<Sidebar.TopBar.Section className='sidebar--custom-colors'>
<UserAvatarButton user={user} />
<UserAvatarButton />
<Sidebar.TopBar.Actions>
<Home title={t('Home')} />
<Search title={t('Search')} data-qa='sidebar-search' />
Expand Down