Skip to content

Commit

Permalink
remove manage widgets (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherChudzicki authored Jul 10, 2024
1 parent 2e08250 commit 1f285ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { channels as factory } from "api/test-utils/factories"
import { ThemeProvider } from "ol-components"

describe("ChannelMenu", () => {
it("Includes links to channel management and widget management", async () => {
it("Includes links to channel management", async () => {
const channel = factory.channel()
setMockResponse.get(
urls.channels.details(channel.channel_type, channel.name),
Expand All @@ -29,10 +29,5 @@ describe("ChannelMenu", () => {
expect((item1 as HTMLAnchorElement).href).toContain(
`/c/${channel.channel_type}/${channel.name}/manage`,
)

const item2 = screen.getByRole("menuitem", { name: "Manage Widgets" })
expect((item2 as HTMLAnchorElement).href).toContain(
`/c/${channel.channel_type}/${channel.name}/manage/widgets`,
)
})
})
5 changes: 0 additions & 5 deletions frontends/mit-open/src/components/ChannelMenu/ChannelMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ const ChannelMenu: React.FC<{ channelType: string; name: string }> = ({
label: "Channel Settings",
href: routes.makeChannelEditPath(channelType, name),
},
{
key: "widget",
label: "Manage Widgets",
href: routes.makeChannelManageWidgetsPath(channelType, name),
},
]
}, [channelType, name])
return (
Expand Down

0 comments on commit 1f285ff

Please sign in to comment.