From 982f847267b3317c0170a44e8ad0ff88bd6fb228 Mon Sep 17 00:00:00 2001 From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com> Date: Wed, 30 Aug 2023 13:28:15 +0530 Subject: [PATCH] Update waitlist firebase --- renderer/components/UpscaylCloudModal.tsx | 53 ++++++++++++++--------- {common => renderer}/firebase.ts | 6 ++- renderer/pages/index.tsx | 4 +- 3 files changed, 38 insertions(+), 25 deletions(-) rename {common => renderer}/firebase.ts (83%) diff --git a/renderer/components/UpscaylCloudModal.tsx b/renderer/components/UpscaylCloudModal.tsx index f593174..f7e79ed 100644 --- a/renderer/components/UpscaylCloudModal.tsx +++ b/renderer/components/UpscaylCloudModal.tsx @@ -1,6 +1,6 @@ -import { doc, setDoc } from "@firebase/firestore"; import { useState } from "react"; -import { waitlistCollection } from "@common/firebase"; +import { waitlistCollection } from "../firebase"; +import { doc, setDoc } from "firebase/firestore"; const nameRegex = /^[A-Za-z\s.'-]+$/; const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; @@ -30,21 +30,10 @@ export const UpscaylCloudModal = ({ show, setShow }) => {
😴 Upscayl while you sleep
-