Skip to content

Commit

Permalink
add avatar component to sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
arthursvpb committed Aug 31, 2022
1 parent 847c907 commit c9bf35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/Sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './styles.scss';
import { useState } from 'react';
import { Link } from 'react-router-dom';

import { Layout, Menu, Typography, Space } from 'antd';
import { Layout, Menu, Typography, Space, Avatar } from 'antd';
import { UserOutlined, CalendarOutlined, HomeOutlined, LogoutOutlined } from '@ant-design/icons';

const { Sider } = Layout;
Expand Down Expand Up @@ -79,7 +79,7 @@ export function Sidebar() {
className="user"
>
{collapsed ? (
<p>A</p>
<Avatar style={{ backgroundColor: '#87d068' }}>A</Avatar>
) : (
<>
<p>Welcome,</p>
Expand Down

0 comments on commit c9bf35d

Please sign in to comment.