Skip to content

Commit

Permalink
Fix category container import order and unsafe assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardLinS committed May 27, 2024
1 parent 852fc56 commit ef63f13
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

import React, { useState } from "react";

import DeleteConfirmationPopup from "./DeletePopup";
import TrashIcon from "../icons/trash.svg";
import EditIcon from "../icons/edit.svg";

import DeleteConfirmationPopup from "./DeletePopup";

import { Category } from "./categoryRoutes";

type IconProps = {
Expand Down Expand Up @@ -74,7 +75,7 @@ const CategoryItem: React.FC<CategoryItemProps> = ({ id, title, pages, onDeleteC
</button>
<button className="bg-[#E5EFF5] p-2 rounded-full border border-black">
<img
src={TrashIcon.src}
src={( TrashIcon as IconProps ).src}
alt="Delete"
className="w-4 h-4"
onClick={() => {
Expand Down

0 comments on commit ef63f13

Please sign in to comment.