refactor: merge 6 EditableTitle wrappers into one file

Replace EditableSessionTitle, EditableMotivatorTitle, EditableYearReviewTitle,
EditableWeatherTitle, EditableWeeklyCheckInTitle, EditableGifMoodTitle individual
files with a single EditableTitles.tsx using spread props. Same public API.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-03 14:06:45 +01:00
parent 2e00522bfc
commit b1ba43fd30
10 changed files with 49 additions and 177 deletions

View File

@@ -5,8 +5,7 @@ import { getWorkshop, getSessionsTabUrl } from '@/lib/workshops';
import { getGifMoodSessionById } from '@/services/gif-mood';
import { getUserTeams } from '@/services/teams';
import { GifMoodBoard, GifMoodLiveWrapper } from '@/components/gif-mood';
import { Badge } from '@/components/ui';
import { EditableGifMoodTitle } from '@/components/ui/EditableGifMoodTitle';
import { Badge, EditableGifMoodTitle } from '@/components/ui';
interface GifMoodSessionPageProps {
params: Promise<{ id: string }>;

View File

@@ -15,8 +15,7 @@ import {
WeatherAverageBar,
WeatherTrendChart,
} from '@/components/weather';
import { Badge } from '@/components/ui';
import { EditableWeatherTitle } from '@/components/ui/EditableWeatherTitle';
import { Badge, EditableWeatherTitle } from '@/components/ui';
interface WeatherSessionPageProps {
params: Promise<{ id: string }>;