♻️(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 { fetchAPI } from "@/features/api/fetchApi";
|
||||||
import { Feedback } from "@/features/feedback/Feedback";
|
import { Feedback } from "@/features/feedback/Feedback";
|
||||||
import { Gaufre } from "@/features/ui/components/gaufre/Gaufre";
|
import { Gaufre } from "@/features/ui/components/gaufre/Gaufre";
|
||||||
|
import { DynamicCalendarLogo } from "@/features/ui/components/logo";
|
||||||
import { UserProfile } from "@/features/ui/components/user/UserProfile";
|
import { UserProfile } from "@/features/ui/components/user/UserProfile";
|
||||||
|
|
||||||
export const HeaderIcon = () => {
|
export const HeaderIcon = () => {
|
||||||
return (
|
return (
|
||||||
<div className="calendars__header__left">
|
<div className="calendars__header__left">
|
||||||
<div className="calendars__header__logo" />
|
<DynamicCalendarLogo variant="header" />
|
||||||
<Feedback />
|
<Feedback />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import { SpinnerPage } from "@/features/ui/components/spinner/SpinnerPage";
|
|||||||
import { Toaster } from "@/features/ui/components/toaster/Toaster";
|
import { Toaster } from "@/features/ui/components/toaster/Toaster";
|
||||||
import { Scheduler } from "@/features/calendar/components/scheduler/Scheduler";
|
import { Scheduler } from "@/features/calendar/components/scheduler/Scheduler";
|
||||||
import { CalendarContextProvider } from "@/features/calendar/contexts";
|
import { CalendarContextProvider } from "@/features/calendar/contexts";
|
||||||
|
import { DynamicCalendarLogo } from "@/features/ui/components/logo";
|
||||||
|
|
||||||
export default function CalendarPage() {
|
export default function CalendarPage() {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@@ -57,7 +58,7 @@ CalendarPage.getLayout = function getLayout(page: React.ReactElement) {
|
|||||||
leftPanelContent={<LeftPanel />}
|
leftPanelContent={<LeftPanel />}
|
||||||
icon={
|
icon={
|
||||||
<div className="calendars__header__left">
|
<div className="calendars__header__left">
|
||||||
<div className="calendars__header__logo" />
|
<DynamicCalendarLogo variant="header" />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
rightHeaderContent={<HeaderRight />}
|
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 { SESSION_STORAGE_REDIRECT_AFTER_LOGIN_URL } from "@/features/api/fetchApi";
|
||||||
import { useThemeCustomization } from "@/hooks/useThemeCustomization";
|
import { useThemeCustomization } from "@/hooks/useThemeCustomization";
|
||||||
import { Feedback } from "@/features/feedback/Feedback";
|
import { Feedback } from "@/features/feedback/Feedback";
|
||||||
|
import { DynamicCalendarLogo } from "@/features/ui/components/logo";
|
||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { user } = useAuth();
|
const { user } = useAuth();
|
||||||
@@ -76,7 +77,7 @@ export default function HomePage() {
|
|||||||
|
|
||||||
<HomeGutter>
|
<HomeGutter>
|
||||||
<Hero
|
<Hero
|
||||||
logo={<div className="calendars__logo-icon" />}
|
logo={<DynamicCalendarLogo variant="icon" />}
|
||||||
banner={banner.src}
|
banner={banner.src}
|
||||||
title={t("home.title")}
|
title={t("home.title")}
|
||||||
subtitle={t("home.subtitle")}
|
subtitle={t("home.subtitle")}
|
||||||
@@ -117,7 +118,7 @@ HomePage.getLayout = function getLayout(page: React.ReactElement) {
|
|||||||
leftPanelContent={<LeftPanelMobile />}
|
leftPanelContent={<LeftPanelMobile />}
|
||||||
icon={
|
icon={
|
||||||
<div className="calendars__header__left">
|
<div className="calendars__header__left">
|
||||||
<div className="calendars__header__logo" />
|
<DynamicCalendarLogo variant="header" />
|
||||||
<Feedback />
|
<Feedback />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user