Skip to content

Commit

Permalink
Bump service_wiki image to v0.18.1 (#1396)
Browse files Browse the repository at this point in the history
Co-authored-by: ITA Wiki bot <bot@itawiki.com>
  • Loading branch information
2 people authored and Cristian-Moller committed Jul 2, 2024
1 parent 06e786d commit 78886a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
2 changes: 1 addition & 1 deletion config/dev/service_wiki.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
service_wiki:
version: 0.18.0
version: 0.18.1
25 changes: 3 additions & 22 deletions packages/ui/src/stories/atoms/HamburgerMenu.stories.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
import type { Meta, StoryObj } from '@storybook/react'
import { HamburgerMenu } from '../../components/atoms'
import { FC, useState } from 'react'

type THamburgerMenuForDocs = {
open: boolean
onClick: () => void
}

const HamburgerMenuForDocs: FC<THamburgerMenuForDocs> = ({ open, onClick }) => {
const [isOpen, setIsOpen] = useState(open)
return (
<HamburgerMenu
open={isOpen || open}
onClick={() => {
setIsOpen(!isOpen)
onClick()
}}
/>
)
}

const meta: Meta<typeof HamburgerMenuForDocs> = {
const meta: Meta<typeof HamburgerMenu> = {
title: 'Atoms/HamburgerMenu',
component: HamburgerMenuForDocs,
component: HamburgerMenu,
parameters: {
layout: 'centered',
},
Expand All @@ -34,7 +15,7 @@ const meta: Meta<typeof HamburgerMenuForDocs> = {
}

export default meta
type HamburgerMenuStory = StoryObj<typeof HamburgerMenuForDocs>
type HamburgerMenuStory = StoryObj<typeof HamburgerMenu>

export const Closed: HamburgerMenuStory = {
args: {
Expand Down

0 comments on commit 78886a8

Please sign in to comment.