-
Notifications
You must be signed in to change notification settings - Fork 0
new icons #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
new icons #25
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,3 +1,4 @@ | ||||||
| import { Icon } from "@magicons/react"; | ||||||
| import { useEffect, useState } from "react"; | ||||||
| import { Link, useSearchParams } from "react-router-dom"; | ||||||
| import { BASE_URL } from "../config"; | ||||||
|
|
@@ -111,20 +112,7 @@ export default function SearchResults() { | |||||
| {products.length === 0 && query ? ( | ||||||
| <div className="text-center py-12"> | ||||||
| <div className="text-gray-400 mb-4"> | ||||||
| <svg | ||||||
| className="w-16 h-16 mx-auto" | ||||||
| fill="none" | ||||||
| stroke="currentColor" | ||||||
| viewBox="0 0 24 24" | ||||||
| xmlns="http://www.w3.org/2000/svg"> | ||||||
| <title>No products found</title> | ||||||
| <path | ||||||
| strokeLinecap="round" | ||||||
| strokeLinejoin="round" | ||||||
| strokeWidth={1} | ||||||
| d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" | ||||||
| /> | ||||||
| </svg> | ||||||
| <Icon src="@hero-MagnifyingGlass" /> | ||||||
|
||||||
| <Icon src="@hero-MagnifyingGlass" /> | |
| <Icon src="@hero-MagnifyingGlass" className="w-16 h-16 mx-auto" /> |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,13 +2,15 @@ import tailwindcss from '@tailwindcss/vite'; | |||||
| import viteReact from '@vitejs/plugin-react'; | ||||||
| import { defineConfig } from 'vite'; | ||||||
| import { visualizer } from "rollup-plugin-visualizer"; | ||||||
| import { magicons } from 'magicons' | ||||||
|
||||||
| import { magicons } from 'magicons' | |
| import { magicons } from 'magicons'; |
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.
The Icon component is missing the sizing classes (w-5 h-5) that were present on the original SVG element. This will cause the icon to render at an incorrect size.