@@ -19,7 +19,7 @@ import TtsLogo from '@assets/static/tts-logo.svg'
1919import {
2020 IconUser ,
2121 IconLogout ,
22- IconAdminShield ,
22+ IconAdminPanel ,
2323 IconCreditCard ,
2424 IconChartBar ,
2525 IconBook ,
@@ -31,7 +31,6 @@ import {
3131} from '@ttn-lw/components/icon'
3232import Dropdown from '@ttn-lw/components/dropdown'
3333import ExampleLogo from '@ttn-lw/components/logo/story-logo-new.svg'
34- import Breadcrumb from '@ttn-lw/components/breadcrumbs/breadcrumb'
3534
3635import Header from '.'
3736
@@ -59,7 +58,7 @@ const plusDropdownItems = (
5958 </ >
6059)
6160
62- const starDropdownItems = (
61+ const bookmarkDropdownItems = (
6362 < >
6463 < Dropdown . Item title = "Parking Lot Occupancy" icon = { IconApplication } path = "/parking1" />
6564 < Dropdown . Item title = "Parking Lot Occupancy" icon = { IconApplication } path = "/parking2" />
@@ -79,7 +78,7 @@ const profileDropdownItems = (
7978 path = "/manage-cloud-subs"
8079 />
8180 < Dropdown . Item title = "Network Operations Center" icon = { IconChartBar } path = "/network_ops" />
82- < Dropdown . Item title = "Admin panel" icon = { IconAdminShield } path = "/admin-panel" />
81+ < Dropdown . Item title = "Admin panel" icon = { IconAdminPanel } path = "/admin-panel" />
8382 < hr />
8483 < Dropdown . Item title = "Upgrade" icon = { IconRocket } path = "/upgrade" />
8584 < Dropdown . Item title = "Get support" icon = { IconSupport } path = "/support" />
@@ -89,24 +88,21 @@ const profileDropdownItems = (
8988 </ >
9089)
9190
92- export const Default = ( ) => {
93- const breadcrumbs = [
94- < Breadcrumb key = "1" path = "/applications" content = "Applications" /> ,
95- < Breadcrumb key = "2" path = "/applications/test-app" content = "test-app" /> ,
96- < Breadcrumb key = "3" path = "/applications/test-app/devices" content = "Devices" /> ,
97- ]
91+ // eslint-disable-next-line react/prop-types
92+ const Logo = ( { className } ) => < img src = { TtsLogo } alt = "Logo" className = { className } />
9893
99- return (
100- < div style = { { height : '25rem' } } >
101- < Header
102- user = { user }
103- breadcrumbs = { breadcrumbs }
104- profileDropdownItems = { profileDropdownItems }
105- addDropdownItems = { plusDropdownItems }
106- starDropdownItems = { starDropdownItems }
107- brandLogo = { { src : ExampleLogo , alt : 'Secondary Logo' } }
108- logo = { { src : TtsLogo , alt : 'Logo' } }
109- />
110- </ div >
111- )
112- }
94+ export const Default = ( ) => (
95+ < div style = { { height : '25rem' } } >
96+ < Header
97+ user = { user }
98+ profileDropdownItems = { profileDropdownItems }
99+ addDropdownItems = { plusDropdownItems }
100+ bookmarkDropdownItems = { bookmarkDropdownItems }
101+ brandLogo = { { src : ExampleLogo , alt : 'Secondary Logo' } }
102+ Logo = { Logo }
103+ isSidebarMinimized = { false }
104+ toggleSidebarMinimized = { ( ) => null }
105+ expandSidebar = { ( ) => null }
106+ />
107+ </ div >
108+ )
0 commit comments