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

Refactor: Migrate Icons to React Icons #137

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"react-dropzone": "^14.3.5",
"react-hook-form": "^7.53.1",
"react-i18next": "^15.1.3",
"react-icons": "^5.3.0",
"react-icons": "^5.4.0",
"react-leaflet": "^5.0.0-rc.1",
"react-router-dom": "^6.28.0",
"react-toastify": "^10.0.6",
Expand Down
3 changes: 0 additions & 3 deletions public/img/Icon.svg

This file was deleted.

Binary file removed public/img/icon1.jpg
Binary file not shown.
Binary file removed public/img/icon2.jpg
Binary file not shown.
9 changes: 2 additions & 7 deletions src/components/auth/ForgotPassword/ForgotPasswordCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import React, { useState } from 'react';
import Link from 'next/link';
import Image from 'next/image';
import { CgPassword } from 'react-icons/cg';

const ForgotPasswordCard: React.FC = () => {
const [email, setEmail] = useState('');
Expand Down Expand Up @@ -38,13 +39,7 @@ const ForgotPasswordCard: React.FC = () => {
<div className="w-[90%] md:w-[440px] px-4 md:px-0">
<div className="flex flex-col items-center mb-6">
<div className="w-16 h-16 bg-orange-100 rounded-full flex items-center justify-center mb-4">
<Image
src="/img/icon.svg"
alt="Password Icon"
width={32}
height={32}
priority
/>
<CgPassword size={32} />
</div>
<h1 className="text-xl md:text-2xl font-bold text-black dark:text-gray-200">
Forgot password?
Expand Down
10 changes: 2 additions & 8 deletions src/components/auth/NewPassword/PasswordHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Image from 'next/image';
import { CgPassword } from 'react-icons/cg';

interface PasswordHeaderProps {
title: string;
Expand All @@ -9,13 +9,7 @@ export function PasswordHeader({ title, subtitle }: PasswordHeaderProps) {
return (
<div className="flex flex-col items-center mb-6">
<div className="w-16 h-16 bg-orange-100 rounded-full flex items-center justify-center mb-4">
<Image
src="/img/icon.svg"
alt="Password Icon"
width={32}
height={32}
priority
/>
<CgPassword size={32} />
</div>
<h1 className="text-xl md:text-2xl font-bold text-black dark:text-gray-200">
{title}
Expand Down
8 changes: 4 additions & 4 deletions src/components/bids/ProcessTimeline/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from 'react';
import { FaHome, FaMoneyBill, FaBell } from 'react-icons/fa';
import { GiReceiveMoney } from 'react-icons/gi';
import { GrDocumentLocked } from 'react-icons/gr';

const Process: React.FC = () => {
return (
Expand All @@ -14,14 +16,12 @@ const Process: React.FC = () => {
text: 'Step 2 description',
},
{
// Use icon1.jpg for Step 3
image: '/img/icon1.jpg',
icon: GrDocumentLocked,
color: 'bg-gray-400',
text: 'Step 3 description',
},
{
// Use icon2.jpg for Step 4
image: '/img/icon2.jpg',
icon: GiReceiveMoney,
color: 'bg-gray-400',
text: 'Step 4 description',
},
Expand Down