mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 15:14:20 +01:00
refactor: replace hamburger icon with bookmark icon on mobile
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React, { useEffect, useRef } from 'react'
|
import React, { useEffect, useRef } from 'react'
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
import { faBars } from '@fortawesome/free-solid-svg-icons'
|
import { faBookmark } from '@fortawesome/free-solid-svg-icons'
|
||||||
import { RelayPool } from 'applesauce-relay'
|
import { RelayPool } from 'applesauce-relay'
|
||||||
import { IEventStore } from 'applesauce-core'
|
import { IEventStore } from 'applesauce-core'
|
||||||
import { BookmarkList } from './BookmarkList'
|
import { BookmarkList } from './BookmarkList'
|
||||||
@@ -156,15 +156,15 @@ const ThreePaneLayout: React.FC<ThreePaneLayoutProps> = (props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* Mobile hamburger button */}
|
{/* Mobile bookmark button */}
|
||||||
{isMobile && !props.isSidebarOpen && (
|
{isMobile && !props.isSidebarOpen && (
|
||||||
<button
|
<button
|
||||||
className="mobile-hamburger-btn"
|
className="mobile-hamburger-btn"
|
||||||
onClick={props.onToggleSidebar}
|
onClick={props.onToggleSidebar}
|
||||||
aria-label="Open sidebar"
|
aria-label="Open bookmarks"
|
||||||
aria-expanded={props.isSidebarOpen}
|
aria-expanded={props.isSidebarOpen}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faBars} />
|
<FontAwesomeIcon icon={faBookmark} />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user