Skip to content

Commit

Permalink
Some
Browse files Browse the repository at this point in the history
  • Loading branch information
Waseem raja Shaik authored and Waseem raja Shaik committed Feb 6, 2024
1 parent 7206c74 commit 7b04a19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/menu/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import SMImage2 from "../../../public/special_menu/sm_image2.jpeg";
import SMImage3 from "../../../public/special_menu/sm_image3.jpeg";

type MenuItems = any;
type MenuItemKeys = keyof typeof MenuItems;

const Menu = () => {
const [menuToggle, setMenuToggle] = useState(0);
Expand Down Expand Up @@ -109,7 +110,7 @@ const Menu = () => {
{items}
</div>
<div className="collapse-content:checked flex flex-wrap bg-white pl-10 pr-10">
{MenuItems[items].map((item, i) => (
{MenuItems[items as MenuItemKeys].map((item, i) => (
<div
className="flex w-full flex-col p-4 min-[100px]:flex-auto lg:flex-[50%]"
key={i}
Expand Down

0 comments on commit 7b04a19

Please sign in to comment.