ok
This commit is contained in:
@@ -35,7 +35,6 @@ const LinktreePage = ({ user, setModal }) => {
|
||||
const [selectedSubItemId, setSelectedSubItemId] = useState(0);
|
||||
const [coupons, setCoupons] = useState(null);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
const urlParams = new URLSearchParams(location.search);
|
||||
const modalParam = urlParams.get('modal');
|
||||
@@ -126,6 +125,7 @@ const LinktreePage = ({ user, setModal }) => {
|
||||
useEffect(() => {
|
||||
if (user) {
|
||||
setLoading(true);
|
||||
document.body.style.backgroundColor = "white";
|
||||
switch (user.roleId) {
|
||||
case 0:
|
||||
getAnalytics().then(setItems).catch(console.error).finally(() => setLoading(false));
|
||||
@@ -138,6 +138,7 @@ const LinktreePage = ({ user, setModal }) => {
|
||||
break;
|
||||
default:
|
||||
setLoading(false);
|
||||
document.body.style.backgroundColor = "rgb(222, 237, 100)";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user