diff --git a/src/components/home/ServicesSection.tsx b/src/components/home/ServicesSection.tsx index 33e8bcf24..16c42a509 100644 --- a/src/components/home/ServicesSection.tsx +++ b/src/components/home/ServicesSection.tsx @@ -19,26 +19,6 @@ interface Category { const ServicesSection: FC = () => { const { t } = useTranslation('common'); - const getIcon = (category: string) => { - const iconMap: { [key: string]: keyof typeof LucideIcons } = { - 'Business and Trade': 'Building2', - 'Certificates and IDs': 'FileCheck', - Contributions: 'Wallet', - 'Disaster and Weather': 'Cloud', - Education: 'GraduationCap', - Employment: 'Briefcase', - Health: 'Heart', - Housing: 'Home', - 'Passport and Travel': 'Plane', - 'Social Services': 'Users', - Tax: 'Receipt', - 'Transport and Driving': 'Car', - }; - - const Icon = LucideIcons[iconMap[category] || 'FileText']; - return Icon ? : null; - }; - // Show only first 12 categories const displayedCategories = serviceCategories.categories.slice( 0, @@ -46,65 +26,65 @@ const ServicesSection: FC = () => { ) as Category[]; return ( -
+
-

+

{t('services.governmentServices')}

-

+

{t('services.description')}

-
+
{displayedCategories.map(category => ( - -
-
- {getIcon(category.category)} -
+ +

+ {category.category} +

-

- {category.category} -

-
- -
    - {category.subcategories.slice(0, 3).map(subcategory => ( -
  • +
      + {category.subcategories.slice(0, 4).map(subcategory => ( +
    • + - {subcategory.name}
    • ))}
    - - {t('services.viewAllCategory')} {category.category} - - +
    + + {t('services.viewAllCategory')} {category.category} +
    ))}
-
+
{t('services.viewAll')} diff --git a/src/components/ui/Card.tsx b/src/components/ui/Card.tsx index 4fb0cca7a..5a728632f 100644 --- a/src/components/ui/Card.tsx +++ b/src/components/ui/Card.tsx @@ -16,9 +16,9 @@ const Card = ({ return (
{ return (