Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide menu items #2724

Merged
merged 3 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions examples/ecommerce-jewellery-store/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { InputPrefix, InputSeparator, TextBox, Switch } from "@progress/kendo-re
import { searchIcon, userIcon, cartIcon } from "@progress/kendo-svg-icons";
import viloraLogo from "@/assets/vilora-logo.png";
import items from "../data/items";
import languageItems from "../data/language-items";
import { AppBar, AppBarSection } from "@progress/kendo-react-layout";
import { useAdminContext } from "../helpers/AdminContext";
import { useCategoriesContext } from "../helpers/CategoriesContext";
Expand Down Expand Up @@ -84,7 +83,6 @@ const Header: React.FC = () => {
offLabel="Client"
onChange={handleSwitchChange}
/>
<Menu items={languageItems} onSelect={handleMenuSelect} />
</AppBarSection>
</AppBar>
);
Expand Down
11 changes: 0 additions & 11 deletions examples/ecommerce-jewellery-store/src/data/language-items.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { SvgIcon } from "@progress/kendo-react-common";
import { InputPrefix, InputSeparator, TextBox, Switch } from "@progress/kendo-react-inputs";
import { searchIcon, userIcon, cartIcon } from "@progress/kendo-svg-icons";
import items from "../data/items";
import languageItems from "../data/language-items";
import { AppBar, AppBarSection } from "@progress/kendo-react-layout";
import { isAdmin } from "../helpers/adminStore";
import { useStore } from "@nanostores/react";
Expand Down Expand Up @@ -67,7 +66,6 @@ const Header: React.FC = () => {
<Button svgIcon={userIcon} fillMode="flat" className="k-ml-2" />
<Button svgIcon={cartIcon} fillMode="flat" className="k-ml-2" onClick={handleCartClick} />
<Switch onLabel="Admin" offLabel="Client" checked={isAdminValue} onChange={handleSwitchChange} />
<Menu items={languageItems} onSelect={handleMenuSelect} />
</AppBarSection>
</AppBar>
);
Expand Down

This file was deleted.

Loading