From 3ce8a598554c367b45c06cd6b561be9d98e0088e Mon Sep 17 00:00:00 2001 From: Thunder Date: Sun, 19 Jan 2025 08:56:07 +0700 Subject: [PATCH] fix: sonar cloud issues --- src/components/commons/Footer.tsx | 28 ++++---- src/components/home/BrowseCategories.tsx | 89 +++++++----------------- 2 files changed, 40 insertions(+), 77 deletions(-) diff --git a/src/components/commons/Footer.tsx b/src/components/commons/Footer.tsx index 9ae94f2..a5b8d75 100644 --- a/src/components/commons/Footer.tsx +++ b/src/components/commons/Footer.tsx @@ -17,7 +17,7 @@ import { export const Footer = () => { return ( -
@@ -94,7 +94,7 @@ export const Footer = () => { className="relative gap-3 self-stretch py-1.5 pr-8 whitespace-nowrap bg-neutral-800 hover:bg-transparent hover:text-white group" > Development - + { className="relative gap-3 self-stretch py-1.5 pr-8 bg-neutral-800 hover:bg-transparent hover:text-white group" > Finance & Accounting - + { className="relative gap-3 self-stretch py-1.5 pr-8 whitespace-nowrap bg-neutral-800 hover:bg-transparent hover:text-white group" > Design - + { className="relative gap-3 self-stretch py-1.5 pr-8 whitespace-nowrap bg-neutral-800 hover:bg-transparent hover:text-white group" > Business - + { className="relative gap-3 self-stretch py-1.5 pr-8 whitespace-nowrap bg-neutral-800 hover:bg-transparent hover:text-white group" > About - + { className="relative gap-3 self-stretch py-1.5 pr-8 whitespace-nowrap bg-neutral-800 hover:bg-transparent hover:text-white group" > Become Instructor - + { className="relative gap-3 self-stretch py-1.5 pr-8 whitespace-nowrap bg-neutral-800 hover:bg-transparent hover:text-white group" > Contact - + { className="relative gap-3 self-stretch py-1.5 pr-8 whitespace-nowrap bg-neutral-800 hover:bg-transparent hover:text-white group" > Career - + { className="relative gap-3 self-stretch py-1.5 pr-8 bg-neutral-800 hover:bg-transparent hover:text-white group" > Help Center - + { className="relative gap-3 self-stretch py-1.5 pr-8 whitespace-nowrap bg-neutral-800 hover:bg-transparent hover:text-white group" > FAQs - + { className="relative gap-3 self-stretch py-1.5 pr-8 bg-neutral-800 hover:bg-transparent hover:text-white group" > Terms & Condition - + { className="relative gap-3 self-stretch py-1.5 pr-8 bg-neutral-800 hover:bg-transparent hover:text-white group" > Privacy Policy - + {
- + ); }; diff --git a/src/components/home/BrowseCategories.tsx b/src/components/home/BrowseCategories.tsx index 9c3a7a7..8301518 100644 --- a/src/components/home/BrowseCategories.tsx +++ b/src/components/home/BrowseCategories.tsx @@ -19,9 +19,8 @@ import { Button } from '@/components/ui/button'; export const BrowseCategories = () => { return ( -

{

-
+
@@ -47,11 +43,8 @@ export const BrowseCategories = () => { 63,476 Courses

-
-
+ +
{ 52,822 Courses

-
-
+ +
{ 33,841 Courses

-
-
+ +
{ 22,649 Courses

-
-
+ +
{ 20,126 Courses

-
-
+ +
@@ -139,11 +120,8 @@ export const BrowseCategories = () => { 13,932 Courses

-
-
+ +
{ 12,068 Courses

-
-
+ +
@@ -174,11 +149,8 @@ export const BrowseCategories = () => { 6,196 Courses

-
-
+ +
{ 2,736 Courses

-
-
+ +
@@ -209,11 +178,8 @@ export const BrowseCategories = () => { 2,600 Courses

- -
+ +
{ 1,678 Courses

-
-
+ +
{ 959 Courses

-
+
@@ -269,6 +232,6 @@ export const BrowseCategories = () => { />
- + ); };