14
14
limitations under the License.
15
15
*/
16
16
17
- import { useEffect , useState } from "react" ;
17
+ import { useState } from "react" ;
18
18
import Sidebar from "../components/Sidebar" ;
19
- import {
20
- getCurrentProfile ,
21
- getProfile ,
22
- getUserTracks ,
23
- Profile ,
24
- } from "@/lib/api" ;
19
+ import { getCurrentProfile , getProfile , getUserTracks } from "@/lib/api" ;
25
20
import PostList from "@/components/PostList" ;
26
21
import { View } from "react-native" ;
27
22
import { useLocalSearchParams , useRouter } from "expo-router" ;
28
23
import NotFoundScreen from "./+not-found" ;
29
24
import ProfileDisplay from "@/components/ProfileDisplay" ;
30
25
import { tokenStorage } from "@/lib/state" ;
31
26
import { useQuery } from "@tanstack/react-query" ;
27
+ import PostCreate from "@/components/PostCreate" ;
32
28
33
29
// TODO: support handles
34
30
export default function UserProfile ( ) {
@@ -64,9 +60,8 @@ export default function UserProfile() {
64
60
65
61
if ( found ) {
66
62
return (
67
- < View className = "flex flex-row justify-center w-full h-screen mb-20 max-lg:no-scrollbar bg-white dark:bg-primary overflow-y-auto overflow-x-hidden scroll-smooth" >
68
- < Sidebar curPage = { user } />
69
- < View className = "lg:mt-9 rounded-3xl max-lg:w-full" >
63
+ < View className = "flex flex-row justify-center w-full h-screen mb-20 no-scrollbar bg-white dark:bg-primary overflow-y-auto overflow-x-hidden scroll-smooth" >
64
+ < View className = "flex lg:mt-9 rounded-3xl max-lg:w-full" >
70
65
< ProfileDisplay
71
66
profile = { profileQuery . data }
72
67
currentUser = {
@@ -82,6 +77,8 @@ export default function UserProfile() {
82
77
loading = { query . isLoading }
83
78
/>
84
79
</ View >
80
+ < PostCreate />
81
+ < Sidebar curPage = { user } />
85
82
</ View >
86
83
) ;
87
84
} else {
0 commit comments