ok
This commit is contained in:
@@ -142,7 +142,7 @@ const Dashboard = () => {
|
|||||||
if (!checkOnce && 'serviceWorker' in navigator) {
|
if (!checkOnce && 'serviceWorker' in navigator) {
|
||||||
navigator.serviceWorker.ready.then(function (registration) {
|
navigator.serviceWorker.ready.then(function (registration) {
|
||||||
registration.pushManager.getSubscription().then(function (subscription) {
|
registration.pushManager.getSubscription().then(function (subscription) {
|
||||||
setCheckOnce(false);
|
setCheckOnce(true);
|
||||||
if (subscription === null) {
|
if (subscription === null) {
|
||||||
// Not subscribed yet — show modal asking user to subscribe
|
// Not subscribed yet — show modal asking user to subscribe
|
||||||
setModalContent(<NotificationPrompt onAllow={subscribeUser} onDismiss={()=>setModalContent('')} />);
|
setModalContent(<NotificationPrompt onAllow={subscribeUser} onDismiss={()=>setModalContent('')} />);
|
||||||
|
|||||||
@@ -84,14 +84,7 @@ const ProfileTab = () => {
|
|||||||
|
|
||||||
}, [navigate]);
|
}, [navigate]);
|
||||||
|
|
||||||
const [profile, setProfile] = useState({
|
const [profile, setProfile] = useState({});
|
||||||
name: "Rikolo",
|
|
||||||
company: "Dermalounge",
|
|
||||||
address: "Jl. Pahlawan No.123, Kediri",
|
|
||||||
email: "admin@dermalounge.com",
|
|
||||||
phone: "08123456789",
|
|
||||||
image: "/dermalounge.jpg"
|
|
||||||
});
|
|
||||||
|
|
||||||
const licenses = [
|
const licenses = [
|
||||||
{ id: 1, type: "AI Bot License", number: "DL-2025-AI001", validUntil: "2026-12-31" },
|
{ id: 1, type: "AI Bot License", number: "DL-2025-AI001", validUntil: "2026-12-31" },
|
||||||
|
|||||||
Reference in New Issue
Block a user