github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/web/src/HelpDialog.stories.tsx (about)

     1  import React from "react"
     2  import { MemoryRouter } from "react-router"
     3  import HelpDialog from "./HelpDialog"
     4  
     5  function onRequestClose() {
     6    console.log("onRequestClose")
     7  }
     8  
     9  export default {
    10    title: "New UI/Shared/HelpDialog",
    11    decorators: [
    12      (Story: any) => (
    13        <MemoryRouter initialEntries={["/"]}>
    14          <Story />
    15        </MemoryRouter>
    16      ),
    17    ],
    18  }
    19  
    20  export const DialogOverview = () => (
    21    <HelpDialog open={true} onClose={onRequestClose} anchorEl={document.body} />
    22  )