clean up service worker

This commit is contained in:
m5r
2022-06-01 23:56:37 +02:00
parent 68570ff3d4
commit 7ca242fff4
8 changed files with 98 additions and 40 deletions

View File

@ -2,12 +2,12 @@ import type { ActionFunction } from "@remix-run/node";
import { ClientOnly } from "remix-utils";
import { Form } from "@remix-run/react";
import db from "~/utils/db.server";
import { notify } from "~/utils/web-push.server";
import Button from "~/features/settings/components/button";
import NotificationsSettings, {
FallbackNotificationsSettings,
} from "~/features/settings/components/settings/notifications-settings";
import db from "~/utils/db.server";
export const action: ActionFunction = async () => {
const phoneNumber = await db.phoneNumber.findUnique({
@ -34,7 +34,7 @@ export const action: ActionFunction = async () => {
title: "Reply",
},
],
data: { recipient: "+33613370787" },
data: { recipient: "+33613370787", type: "message" },
});
return null;
};
@ -48,7 +48,7 @@ export default function Notifications() {
</div>
<section>
<Form method="post" action="/settings/notifications">
<Form method="post">
<Button variant="default" type="submit">
send it!!!
</Button>