User profile viewing - need to add more to the details view

This commit is contained in:
Sean Morley
2024-09-08 00:56:52 -04:00
parent a70b1f2818
commit 7d228b302b
6 changed files with 135 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
<script lang="ts">
import type { PageData } from './$types';
export let data: PageData;
const user = data.props.user;
console.log(user);
</script>
<h1>{user.first_name} {user.last_name}</h1>
<p>{user.username}</p>
<p>{user.is_staff ? 'Admin' : 'User'}</p>