diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d683aa..f43825c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +0.28.1 +------ +- Fix: Layout menu mobile + +0.28.0 +------ +- Feat: Update to typescript + 0.27.0 ------ - Feat: Add label to input list diff --git a/package.json b/package.json index cf24a29..c13148c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.28.0", + "version": "0.28.1", "repository": { "type": "git", "url": "git@github.com:guillotinaweb/guillotina_react.git" diff --git a/src/guillo-gmi/components/layout.tsx b/src/guillo-gmi/components/layout.tsx index f1f2157..9659818 100644 --- a/src/guillo-gmi/components/layout.tsx +++ b/src/guillo-gmi/components/layout.tsx @@ -1,5 +1,7 @@ +import { useState } from 'react' import { Auth } from '../lib/auth' import { Icon } from './ui/icon' +import { classnames } from '../lib/helpers' interface Props { children: React.ReactNode @@ -7,6 +9,7 @@ interface Props { auth: Auth } export function Layout({ children, onLogout, auth }: Props) { + const [isMenuOpen, setIsMenuOpen] = useState(false) const doLogout = () => { auth.logout() onLogout() @@ -16,24 +19,32 @@ export function Layout({ children, onLogout, auth }: Props) { <>