Skip to content

Commit

Permalink
Chore: Convert apps/meteor/client/sidebar/header/index (#25671)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti authored Jun 1, 2022
1 parent 5b81dba commit 6c1a7b1
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 6c1a7b1

Please sign in to comment.