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 { .root {
button { button {
border: none; border: none;
font-size: 1rem;
font-weight: 600;
} }
} }

View file

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