Changed user dropdown to include icon and removed font size

This commit is contained in:
t1enne 2022-05-22 08:36:52 +02:00
parent 99f40e28cb
commit e045ab605b
2 changed files with 3 additions and 5 deletions

View file

@ -1,7 +1,5 @@
.root {
button {
border: none;
font-size: 1rem;
font-weight: 600;
}
}

View file

@ -1,5 +1,5 @@
import { Menu, Dropdown, Button, Space } from 'antd';
import { DownOutlined } from '@ant-design/icons';
import { CaretDownOutlined, UserOutlined } from '@ant-design/icons';
import { useRecoilState, useRecoilValue } from 'recoil';
import { useState } from 'react';
import Modal from '../../ui/Modal/Modal';
@ -48,10 +48,10 @@ export default function UserDropdown({ username: defaultUsername, chatState }: P
return (
<div className={`${s.root}`}>
<Dropdown overlay={menu} trigger={['click']}>
<Button>
<Button icon={<UserOutlined style={{ marginRight: '.5rem' }} />}>
<Space>
{username}
<DownOutlined />
<CaretDownOutlined />
</Space>
</Button>
</Dropdown>