Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frontend/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ function IntentSection({
export default function Home() {
const queryClient = useQueryClient();

useEffect(() => {
document.title = 'Splitt';
}, []);

const [cancelTarget, setCancelTarget] = useState(null);
const [activeMatchId, setActiveMatchId] = useState(null);
const [confirmError, setConfirmError] = useState('');
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export default function Login() {
const queryClient = useQueryClient();
const [googleError, setGoogleError] = useState('');

useEffect(() => {
document.title = 'Sign in · Splitt';
}, []);

const { data: user, isLoading } = useQuery({
queryKey: ['me'],
queryFn: me,
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/pages/PostIntent.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react';
import { useState, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { useRequireAuth } from '../features/auth/hooks';
import { useCreateIntent } from '../features/intents/hooks';
Expand All @@ -20,6 +20,10 @@ export default function PostIntent() {
const { isLoading: authLoading } = useRequireAuth();
const { mutateAsync, isPending } = useCreateIntent();

useEffect(() => {
document.title = 'Post an intent · Splitt';
}, []);

if (authLoading) return <div className="p-8 text-gray-500">Loading...</div>;

const [direction, setDirection] = useState('FROM_CAMPUS');
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/pages/PostRide.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react';
import { useState, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { useRequireAuth } from '../features/auth/hooks';
import { useCreateRide } from '../features/rides/hooks';
Expand All @@ -20,6 +20,10 @@ export default function PostRide() {
const { isLoading: authLoading } = useRequireAuth();
const { mutateAsync, isPending } = useCreateRide();

useEffect(() => {
document.title = 'Post a ride · Splitt';
}, []);

if (authLoading) return <div className="p-8 text-gray-500">Loading...</div>;

const [direction, setDirection] = useState('FROM_CAMPUS');
Expand Down
Loading