Front: Settings URL: Tweak to avoid code repitition
This commit is contained in:
committed by
Clément Le Bihan
parent
f362531d42
commit
45595408fe
@@ -79,7 +79,7 @@ type SetttingsNavigatorProps = {
|
||||
const SetttingsNavigator = (props?: RouteProps<SetttingsNavigatorProps>) => {
|
||||
const userQuery = useQuery(['user'], () => API.getUserInfo());
|
||||
const user = useMemo(() => userQuery.data, [userQuery]);
|
||||
|
||||
console.log(props?.screen);
|
||||
if (userQuery.isLoading) {
|
||||
return (
|
||||
<Center style={{ flex: 1 }}>
|
||||
|
||||
Reference in New Issue
Block a user