From b61e1a144191a3931b70afb481d702826fddada4 Mon Sep 17 00:00:00 2001 From: R3D347HR4Y Date: Fri, 19 Jun 2026 22:17:59 +0200 Subject: [PATCH] refactor: simplify agenda icon usage across components - Removed dark mode icon references for the agenda in landing-data, favorite-apps, and suite-app-splash files. - Consolidated agenda icon handling in agenda-mark component to use a single light icon, improving code maintainability and reducing redundancy. --- components/landing/landing-data.ts | 1 - components/suite/agenda-mark.tsx | 26 ++++++++------------------ lib/suite/favorite-apps.ts | 1 - lib/suite/suite-app-splash.ts | 2 -- 4 files changed, 8 insertions(+), 22 deletions(-) diff --git a/components/landing/landing-data.ts b/components/landing/landing-data.ts index f3c66bb..b7cfc1e 100644 --- a/components/landing/landing-data.ts +++ b/components/landing/landing-data.ts @@ -124,7 +124,6 @@ export const LANDING_APPS: LandingApp[] = [ description: "Calendrier partagé, invitations et disponibilités, connecté au mail et aux contacts.", icon: suitePublicAsset("/agenda-mark.svg"), - iconDark: suitePublicAsset("/agenda-mark-dark.svg"), href: "/agenda", productHref: "/suite/ultical", accent: "#FBBC04", diff --git a/components/suite/agenda-mark.tsx b/components/suite/agenda-mark.tsx index 3968187..284fba6 100644 --- a/components/suite/agenda-mark.tsx +++ b/components/suite/agenda-mark.tsx @@ -1,8 +1,7 @@ import { suitePublicAsset } from "@/lib/suite/suite-public-asset" import { cn } from "@/lib/utils" -const AGENDA_MARK_LIGHT = suitePublicAsset("/agenda-mark.svg") -const AGENDA_MARK_DARK = suitePublicAsset("/agenda-mark-dark.svg") +const AGENDA_MARK = suitePublicAsset("/agenda-mark.svg") export function AgendaMark({ className, @@ -12,21 +11,12 @@ export function AgendaMark({ alt?: string }) { return ( - <> - {alt} - {alt} - + {alt} ) } diff --git a/lib/suite/favorite-apps.ts b/lib/suite/favorite-apps.ts index 018a271..eb0d48a 100644 --- a/lib/suite/favorite-apps.ts +++ b/lib/suite/favorite-apps.ts @@ -17,7 +17,6 @@ export const SUITE_FAVORITE_APPS: FavoriteApp[] = [ { name: ULTICAL_APP_NAME, icon: suitePublicAsset("/agenda-mark.svg"), - iconDark: suitePublicAsset("/agenda-mark-dark.svg"), href: "/agenda", }, { name: "Photos", icon: suitePublicAsset("/photos-mark.svg") }, diff --git a/lib/suite/suite-app-splash.ts b/lib/suite/suite-app-splash.ts index a0f0958..90a5a9f 100644 --- a/lib/suite/suite-app-splash.ts +++ b/lib/suite/suite-app-splash.ts @@ -9,7 +9,6 @@ const LEGACY_MAIL_SPLASH_KEY = "ultimail-splash-seen-v1" export type SuiteSplashConfig = { pill: string mark: string - /** UltiCal : variante dark mode. */ markDark?: string subtitle: string ariaLabel: string @@ -33,7 +32,6 @@ export const SUITE_SPLASH_CONFIG: Record = { agenda: { pill: "ULTICAL", mark: "/agenda-mark.svg", - markDark: "/agenda-mark-dark.svg", subtitle: "Chargement de votre agenda...", ariaLabel: `Chargement d'${ULTICAL_APP_NAME}`, spinMark: true,