This commit is contained in:
everythingonblack
2025-06-20 13:19:40 +07:00
parent e35244b664
commit 8918c95b56
2 changed files with 2 additions and 9 deletions

View File

@@ -142,7 +142,7 @@ const Dashboard = () => {
if (!checkOnce && 'serviceWorker' in navigator) {
navigator.serviceWorker.ready.then(function (registration) {
registration.pushManager.getSubscription().then(function (subscription) {
setCheckOnce(false);
setCheckOnce(true);
if (subscription === null) {
// Not subscribed yet — show modal asking user to subscribe
setModalContent(<NotificationPrompt onAllow={subscribeUser} onDismiss={()=>setModalContent('')} />);

View File

@@ -84,14 +84,7 @@ const ProfileTab = () => {
}, [navigate]);
const [profile, setProfile] = useState({
name: "Rikolo",
company: "Dermalounge",
address: "Jl. Pahlawan No.123, Kediri",
email: "admin@dermalounge.com",
phone: "08123456789",
image: "/dermalounge.jpg"
});
const [profile, setProfile] = useState({});
const licenses = [
{ id: 1, type: "AI Bot License", number: "DL-2025-AI001", validUntil: "2026-12-31" },