diff --git a/apps/timo-web/app/[locale]/(main)/settings/_components/account/SettingsProfileView.tsx b/apps/timo-web/app/[locale]/(main)/settings/_components/account/SettingsProfileView.tsx index 1802b3c8..e42a4451 100644 --- a/apps/timo-web/app/[locale]/(main)/settings/_components/account/SettingsProfileView.tsx +++ b/apps/timo-web/app/[locale]/(main)/settings/_components/account/SettingsProfileView.tsx @@ -14,6 +14,7 @@ import { SettingsTagsSectionContainer } from "@/app/[locale]/(main)/settings/_co export interface SettingsProfileViewProps { name: string; googleEmail: string; + profileImageUrl?: string; isCalendarConnected: boolean; language: SettingsLanguage; tags: SettingsTagItem[]; @@ -28,6 +29,7 @@ export interface SettingsProfileViewProps { export const SettingsProfileView = ({ name, googleEmail, + profileImageUrl, isCalendarConnected, language, tags, @@ -51,7 +53,18 @@ export const SettingsProfileView = ({ {labels.profileSection}
-
+ {profileImageUrl ? ( + {name} + ) : ( +
+ )}

{name}

diff --git a/apps/timo-web/app/[locale]/(main)/settings/_containers/account/SettingsProfileContainer.tsx b/apps/timo-web/app/[locale]/(main)/settings/_containers/account/SettingsProfileContainer.tsx index cd892980..8e1f8d8c 100644 --- a/apps/timo-web/app/[locale]/(main)/settings/_containers/account/SettingsProfileContainer.tsx +++ b/apps/timo-web/app/[locale]/(main)/settings/_containers/account/SettingsProfileContainer.tsx @@ -66,6 +66,7 @@ export const SettingsProfileContainer = () => { { profileState: { name: profile.name, googleEmail: profile.email, + profileImageUrl: profile.profileImageUrl ?? undefined, calendarConnected: profile.calendarConnected, language: locale, tags: tagItems, diff --git a/apps/timo-web/next.config.js b/apps/timo-web/next.config.js index d9ce883d..0bf92f81 100644 --- a/apps/timo-web/next.config.js +++ b/apps/timo-web/next.config.js @@ -5,6 +5,14 @@ import createNextIntlPlugin from "next-intl/plugin"; /** @type {import('next').NextConfig} */ const nextConfig = { transpilePackages: ["@repo/timo-design-system"], + images: { + remotePatterns: [ + { + protocol: "https", + hostname: "lh3.googleusercontent.com", + }, + ], + }, }; const withNextIntl = createNextIntlPlugin();