feat: UserSettings
This commit is contained in:
parent
b5613c6e18
commit
798e54f11c
6 changed files with 206 additions and 4 deletions
|
|
@ -7,6 +7,7 @@ import useFetch from '../../../hooks/useFetch';
|
|||
import { useThemeColor } from "../../../hooks/useThemeColor";
|
||||
import { addExpense } from "../../../services/database";
|
||||
import { useAuth } from '../../contexts/AuthContext';
|
||||
import { useRouter } from "expo-router";
|
||||
|
||||
export default function Page() {
|
||||
|
||||
|
|
@ -31,6 +32,7 @@ export default function Page() {
|
|||
}
|
||||
});
|
||||
|
||||
const router = useRouter();
|
||||
const {onLogout} = useAuth();
|
||||
const [plusShow, setPlusShow] = useState(true);
|
||||
const prevOffset = useRef(0);
|
||||
|
|
@ -73,7 +75,7 @@ export default function Page() {
|
|||
data={data}
|
||||
ListHeaderComponent={
|
||||
<>
|
||||
<Welcome name="My Dude" image={profile} onPress={onLogout!}></Welcome>
|
||||
<Welcome name="My Dude" image={profile} onPress={() => {router.push("/home/userSettings")}}></Welcome>
|
||||
<SearchBar placeholder='Type to Search...'></SearchBar>
|
||||
</>
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue