-
Notifications
You must be signed in to change notification settings - Fork 25
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
add package: heroicons, flowbite icon #122
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { Link } from "@tanstack/react-router"; | ||
import { CaretDown, CaretRight } from "flowbite-react-icons/solid"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Remove unused heroicons package The heroicons package is listed as a dependency in package.json but is not being used in the codebase. The investigation shows:
🔗 Analysis chainVerify the necessity of the heroicons package While the PR title mentions adding both Let's check if heroicons is used elsewhere in the codebase: Let me gather more information to verify if heroicons is actually being used in the codebase or if it's just added as a dependency without usage. Let me check the implementation of those custom icons in the icons directory to see if they might be using heroicons internally. Let me check the BasicIcon component to complete the investigation. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for heroicons usage in the codebase
# Expected: Find any imports or usage of heroicons to justify its addition
# Search for heroicons imports
echo "Searching for heroicons imports..."
rg -l "from ['\"]@heroicons|from ['\"]heroicons"
# Search for heroicons in package.json
echo "Checking package.json for heroicons..."
rg "heroicons" package.json
Length of output: 275 Script: #!/bin/bash
# Search for any heroicons references in the entire codebase
echo "Searching for any heroicons references..."
rg -i "heroicons"
# Search for any icon imports to see what icon libraries are actually being used
echo -e "\nSearching for icon-related imports..."
rg "from.*icons"
Length of output: 1033 Script: #!/bin/bash
# Check the implementation of custom icons
echo "Checking custom icon implementations..."
for icon in BellIcon CalendarIcon LogoutIcon PlusIcon SidebarArrowDownIcon SidebarArrowRightIcon; do
echo -e "\n=== $icon implementation ==="
rg -A 5 "export.*$icon" src/components/icons/
done
Length of output: 5594 Script: #!/bin/bash
# Check the BasicIcon implementation
echo "Checking BasicIcon implementation..."
rg -A 10 "export.*BasicIcon" src/components/icons/
Length of output: 895 |
||
import { useState } from "react"; | ||
import { HStack, SidebarArrowDownIcon, SidebarArrowRightIcon, VStack } from "../components"; | ||
import { HStack, VStack } from "../components"; | ||
|
||
const options = [ | ||
{ name: "首頁", engName: "Home", pageNav: "/" }, | ||
|
@@ -29,9 +30,9 @@ export const DrawerOption = () => { | |
<HStack className="bg-blue-200" key={option.name}> | ||
<div className="flex items-center" onClick={() => toggleOption(option.name)}> | ||
{openOptions[option.name] ? ( | ||
<SidebarArrowDownIcon fill="currentColor" stroke={"#B1B1B1"} size={20} /> | ||
<CaretDown /> | ||
) : ( | ||
<SidebarArrowRightIcon fill="currentColor" stroke={"#B1B1B1"} size={20} /> | ||
<CaretRight /> | ||
)} | ||
</div> | ||
<Link to={option.pageNav}> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix heroicons version - specified version doesn't exist
The specified version
^2.1.5
for heroicons is incorrect as this version doesn't exist yet. The latest stable version is 2.1.1.Apply this diff to fix the version:
📝 Committable suggestion