mirror of
https://github.com/coder/coder.git
synced 2026-11-17 05:40:12 +08:00
chore(site): Upgrade to MUI v5 (#7437)
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
import { Story } from "@storybook/react"
|
||||
import { BorderedMenuRow } from "../BorderedMenuRow/BorderedMenuRow"
|
||||
import { BuildingIcon } from "../Icons/BuildingIcon"
|
||||
import { UsersOutlinedIcon } from "../Icons/UsersOutlinedIcon"
|
||||
import { BorderedMenu, BorderedMenuProps } from "./BorderedMenu"
|
||||
|
||||
export default {
|
||||
title: "components/BorderedMenu",
|
||||
component: BorderedMenu,
|
||||
}
|
||||
|
||||
const Template: Story<BorderedMenuProps> = (args: BorderedMenuProps) => (
|
||||
<BorderedMenu {...args}>
|
||||
<BorderedMenuRow
|
||||
title="Item 1"
|
||||
description="Here's a description"
|
||||
Icon={BuildingIcon}
|
||||
path="/"
|
||||
/>
|
||||
<BorderedMenuRow
|
||||
active
|
||||
title="Item 2"
|
||||
description="This BorderedMenuRow is active"
|
||||
Icon={UsersOutlinedIcon}
|
||||
path="/"
|
||||
/>
|
||||
</BorderedMenu>
|
||||
)
|
||||
|
||||
export const UserVariant = Template.bind({})
|
||||
UserVariant.args = {
|
||||
variant: "user-dropdown",
|
||||
open: true,
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import Popover, { PopoverProps } from "@material-ui/core/Popover"
|
||||
import { makeStyles } from "@material-ui/core/styles"
|
||||
import Popover, { PopoverProps } from "@mui/material/Popover"
|
||||
import { makeStyles } from "@mui/styles"
|
||||
import { FC, PropsWithChildren } from "react"
|
||||
|
||||
type BorderedMenuVariant = "user-dropdown"
|
||||
|
||||
Reference in New Issue
Block a user