mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
fix: useEffect() syntax and formatting
This commit is contained in:
parent
cfe86b00aa
commit
57a2650e8d
@ -234,13 +234,14 @@ const App: React.FC = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const searchParam = new URLSearchParams(window.location.search)
|
const searchParam = new URLSearchParams(window.location.search);
|
||||||
const userToken = searchParam.get('token')
|
const userToken = searchParam.get("token");
|
||||||
|
|
||||||
if (userToken) {
|
if (userToken) {
|
||||||
setLocalToken(userToken);
|
setLocalToken(userToken);
|
||||||
setToken(userToken);
|
setToken(userToken);
|
||||||
}, [])
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="container">
|
<div className="container">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user