Skip to content

Commit

Permalink
[MOD] put logout button back into sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
adbusnel committed Nov 29, 2024
1 parent 8928881 commit eccd2f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Components/Sidebar/sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { toast } from 'react-toastify'

import { FaUsers, FaExclamationCircle } from 'react-icons/fa'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faAnglesDown } from '@fortawesome/free-solid-svg-icons'
import { faAnglesDown, faRightFromBracket } from '@fortawesome/free-solid-svg-icons'

import '../../css/Components/Popup/popup.scss'
import '../../css/Components/Sidebar/sidebar.scss'
Expand Down Expand Up @@ -277,6 +277,9 @@ export default function Sidebar () {
<div data-testid='sidebar-expander' onClick={() => toggleSidebar()} className='item'>
<FontAwesomeIcon size='2xl' icon={faAnglesDown} rotation={270} style={{ color: '#4f23e2' }} />
</div>
<div onClick={() => disconnect()} className='item'>
<FontAwesomeIcon icon={faRightFromBracket} size='2xl' style={{ color: '#4f23e2' }} />
</div>
</div>
</div>
)}
Expand Down Expand Up @@ -321,6 +324,9 @@ export default function Sidebar () {
<div data-testid='sidebar-collapser' onClick={() => toggleSidebar()} className='item'>
<FontAwesomeIcon size='2xl' icon={faAnglesDown} rotation={90} style={{ color: '#4f23e2' }} /> Réduire
</div>
<div onClick={() => disconnect()} className='item'>
<FontAwesomeIcon icon={faRightFromBracket} size='2xl' style={{ color: '#4f23e2' }} />
</div>
</div>
</div>
)}
Expand Down

0 comments on commit eccd2f6

Please sign in to comment.