♻️(front) use DynamicCalendarLogo in app
Replace static logo divs with DynamicCalendarLogo component in: - Header.tsx: header variant for main navigation - index.tsx: both header and icon variants for home page - calendar.tsx: header variant for calendar page Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,12 +5,13 @@ import { useTranslation } from "react-i18next";
|
||||
import { fetchAPI } from "@/features/api/fetchApi";
|
||||
import { Feedback } from "@/features/feedback/Feedback";
|
||||
import { Gaufre } from "@/features/ui/components/gaufre/Gaufre";
|
||||
import { DynamicCalendarLogo } from "@/features/ui/components/logo";
|
||||
import { UserProfile } from "@/features/ui/components/user/UserProfile";
|
||||
|
||||
export const HeaderIcon = () => {
|
||||
return (
|
||||
<div className="calendars__header__left">
|
||||
<div className="calendars__header__logo" />
|
||||
<DynamicCalendarLogo variant="header" />
|
||||
<Feedback />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -14,6 +14,7 @@ import { SpinnerPage } from "@/features/ui/components/spinner/SpinnerPage";
|
||||
import { Toaster } from "@/features/ui/components/toaster/Toaster";
|
||||
import { Scheduler } from "@/features/calendar/components/scheduler/Scheduler";
|
||||
import { CalendarContextProvider } from "@/features/calendar/contexts";
|
||||
import { DynamicCalendarLogo } from "@/features/ui/components/logo";
|
||||
|
||||
export default function CalendarPage() {
|
||||
const { t } = useTranslation();
|
||||
@@ -57,7 +58,7 @@ CalendarPage.getLayout = function getLayout(page: React.ReactElement) {
|
||||
leftPanelContent={<LeftPanel />}
|
||||
icon={
|
||||
<div className="calendars__header__left">
|
||||
<div className="calendars__header__logo" />
|
||||
<DynamicCalendarLogo variant="header" />
|
||||
</div>
|
||||
}
|
||||
rightHeaderContent={<HeaderRight />}
|
||||
|
||||
@@ -17,6 +17,7 @@ import { LeftPanelMobile } from "@/features/layouts/components/left-panel/LeftPa
|
||||
import { SESSION_STORAGE_REDIRECT_AFTER_LOGIN_URL } from "@/features/api/fetchApi";
|
||||
import { useThemeCustomization } from "@/hooks/useThemeCustomization";
|
||||
import { Feedback } from "@/features/feedback/Feedback";
|
||||
import { DynamicCalendarLogo } from "@/features/ui/components/logo";
|
||||
export default function HomePage() {
|
||||
const { t } = useTranslation();
|
||||
const { user } = useAuth();
|
||||
@@ -76,7 +77,7 @@ export default function HomePage() {
|
||||
|
||||
<HomeGutter>
|
||||
<Hero
|
||||
logo={<div className="calendars__logo-icon" />}
|
||||
logo={<DynamicCalendarLogo variant="icon" />}
|
||||
banner={banner.src}
|
||||
title={t("home.title")}
|
||||
subtitle={t("home.subtitle")}
|
||||
@@ -117,7 +118,7 @@ HomePage.getLayout = function getLayout(page: React.ReactElement) {
|
||||
leftPanelContent={<LeftPanelMobile />}
|
||||
icon={
|
||||
<div className="calendars__header__left">
|
||||
<div className="calendars__header__logo" />
|
||||
<DynamicCalendarLogo variant="header" />
|
||||
<Feedback />
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user