diff --git a/apps/client/src/components/Navbar.tsx b/apps/client/src/components/Navbar.tsx
index c1d79c0..4535d50 100644
--- a/apps/client/src/components/Navbar.tsx
+++ b/apps/client/src/components/Navbar.tsx
@@ -1,5 +1,6 @@
import { ViewTransitionLink } from "@cv/routing";
import { useLocation } from "react-router-dom";
+import { ProfileSwitcher } from "@/features/profile/components/ProfileSwitcher";
import { cn } from "@/utils/cn";
import type { NavLink } from "./navLinks";
import { UserProfileDrawer } from "./UserProfileDrawer";
@@ -48,6 +49,7 @@ export const Navbar = ({ user, onLogout, links }: NavbarProps) => {
diff --git a/apps/client/src/pages/cvs/CreateCVPage.tsx b/apps/client/src/pages/cvs/CreateCVPage.tsx
index 9cf8931..bfa66d0 100644
--- a/apps/client/src/pages/cvs/CreateCVPage.tsx
+++ b/apps/client/src/pages/cvs/CreateCVPage.tsx
@@ -2,11 +2,12 @@ import { Button, Page, Placeholder, TextInput, useToast } from "@cv/ui";
import { useQueryClient } from "@tanstack/react-query";
import { useState } from "react";
import { useNavigate } from "react-router-dom";
-import { useActiveProfileId } from "@/contexts/ProfileProvider";
+import { useActiveProfileId, useProfile } from "@/contexts/ProfileProvider";
import { useCreateCvMutation, useCvTemplatesQuery } from "@/generated/graphql";
const CreateCVPage = () => {
- const profileId = useActiveProfileId();
+ const activeProfileId = useActiveProfileId();
+ const { profiles } = useProfile();
const navigate = useNavigate();
const queryClient = useQueryClient();
const { data: templatesData, isLoading: templatesLoading } =
@@ -17,6 +18,7 @@ const CreateCVPage = () => {
const [formData, setFormData] = useState({
title: "",
templateId: "",
+ profileId: activeProfileId,
isPublic: false,
});
@@ -37,7 +39,7 @@ const CreateCVPage = () => {
try {
const result = await createCV({
input: {
- profileId,
+ profileId: formData.profileId,
title: formData.title,
templateId: formData.templateId,
},
@@ -88,6 +90,39 @@ const CreateCVPage = () => {
required
/>
+ {profiles.length > 1 && (
+
+
+
+
+ Defaults to your active profile. CVs belong to one profile and
+ pull their job experience / education from it.
+
+
+ )}
+