make oauth redirect url depends on env mode
This commit is contained in:
parent
e598a02670
commit
10a997a8a1
2 changed files with 1 additions and 7 deletions
|
|
@ -28,11 +28,9 @@ function App() {
|
|||
getUser().then(setUser);
|
||||
}, []);
|
||||
|
||||
const [isLoading, setIsLoading] = useState(false)
|
||||
const [isParametersModalOpen, setIsParametersModalOpen] = useState(true)
|
||||
const [error, setError] = useState('')
|
||||
const fetchData = async () => {
|
||||
setIsLoading(true);
|
||||
|
||||
try {
|
||||
const accessToken = user?.access_token;
|
||||
|
|
@ -52,7 +50,6 @@ function App() {
|
|||
setError('Failed to fetch data: ' + err);
|
||||
alert(error)
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
}
|
||||
};
|
||||
const onSubmit = async () => {
|
||||
|
|
@ -61,7 +58,6 @@ function App() {
|
|||
if (data) {
|
||||
setListingData(data);
|
||||
}
|
||||
setIsLoading(false);
|
||||
setIsParametersModalOpen(false)
|
||||
|
||||
}
|
||||
|
|
@ -69,8 +65,6 @@ function App() {
|
|||
if (!user) {
|
||||
return <LoginModal isOpen={user === null} />
|
||||
}
|
||||
const nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
|
||||
|
||||
return (
|
||||
<>
|
||||
<SidebarProvider defaultOpen={false}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue