- save progress;

This commit is contained in:
Vitalii Kiiko
2024-12-23 09:44:42 +01:00
parent 10a1a25edb
commit 73b319ea9c

View File

@@ -1,4 +1,4 @@
import React, { useRef } from 'react'; import React, { useRef, useState } from 'react';
import { __ } from '@wordpress/i18n'; import { __ } from '@wordpress/i18n';
// components // components
@@ -11,9 +11,11 @@ import { InputText } from 'primereact/inputtext';
import { Badge } from 'primereact/badge'; import { Badge } from 'primereact/badge';
import { Button } from 'primereact/button'; import { Button } from 'primereact/button';
import TopBarProfileMenu from '../../../../components/TopBarProfileMenu'; import TopBarProfileMenu from '../../../../components/TopBarProfileMenu';
import { Sidebar } from 'primereact/sidebar';
const AppTopbar = () => { const AppTopbar = () => {
const menuLeft = useRef(null); const menuLeft = useRef(null);
const [notificationsVisible, setNotificationsVisible] = useState(false);
const startContent = <Link to="/"> const startContent = <Link to="/">
<LogoIcon/> <LogoIcon/>
@@ -42,7 +44,18 @@ const AppTopbar = () => {
</div> </div>
return ( return (
<Toolbar start={startContent} end={endContent} className="topBar"/> <>
<Toolbar start={startContent} end={endContent} className="topBar"/>
<Sidebar visible={notificationsVisible} onHide={() => setNotificationsVisible(false)} fullScreen>
<h2>Sidebar</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
</p>
</Sidebar>
</>
) )
} }