mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 04:11:14 -05:00
Add location field to profile
This commit is contained in:
@@ -21,6 +21,7 @@ import { PhotoUpload } from '@/components/upload/PhotoUpload';
|
||||
import { profileEditSchema } from '@/lib/validation';
|
||||
import { LocationDisplay } from '@/components/profile/LocationDisplay';
|
||||
import { UserBlockButton } from '@/components/profile/UserBlockButton';
|
||||
import { PersonalLocationDisplay } from '@/components/profile/PersonalLocationDisplay';
|
||||
export default function Profile() {
|
||||
const {
|
||||
username
|
||||
@@ -394,6 +395,9 @@ export default function Profile() {
|
||||
|
||||
{/* Show location only if privacy allows */}
|
||||
{profile.location && <LocationDisplay location={profile.location} userId={profile.user_id} isOwnProfile={isOwnProfile} />}
|
||||
|
||||
{/* Show personal location if available and privacy allows */}
|
||||
{profile.personal_location && <PersonalLocationDisplay personalLocation={profile.personal_location} userId={profile.user_id} isOwnProfile={isOwnProfile} />}
|
||||
</div>
|
||||
</div>}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user