Skip to content

Commit fbd2b8a

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent c623657 commit fbd2b8a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/routes/profile.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { fetchProfile } from "../../api/auth";
2-
import type { Profile } from "../../api/supabaseClient";
2+
import type { Route } from "./+types/profile";
33

4-
export async function clientLoader({ params }: { params: { id: string } }) {
4+
export async function clientLoader({ params }: Route.ClientLoaderArgs) {
55
return await fetchProfile(params.id);
66
}
77

8-
export default function ProfilePage({ loaderData: profile }: { loaderData: Profile }) {
8+
export default function ProfilePage({ loaderData: profile }: Route.ComponentProps) {
99

1010
return (
1111
<main>Profile {profile.display_name}</main>

0 commit comments

Comments
 (0)