This commit is contained in:
everythingonblack
2025-04-04 05:03:09 +07:00
parent 931f3f90e8
commit 6b59349eff
18 changed files with 998 additions and 698 deletions

View File

@@ -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;
}
}