This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crypto | |
as a developer | |
don't believe me | |
quote tweet this with | |
👇 | |
🧵 | |
here’s what you need to know | |
Wrong answers only | |
you're already behind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Head from "next/head"; | |
import Layout from "components/Layout"; | |
import { createClient } from "@supabase/supabase-js"; | |
import dynamic from "next/dynamic"; | |
import { useEffect } from "react"; | |
const AdminPage = ({ adminKey }) => { | |
const SupabaseGrid = dynamic(() => import("@supabase/grid")); | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
export default async function handler(req, res) { | |
if (req.method === "PUT") { | |
axios | |
.put( | |
"https://api.sendgrid.com/v3/marketing/contacts", | |
{ | |
contacts: [{ email: `${req.body.mail}` }], | |
list_ids: [process.env.SENDGRID_MAILING_ID], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
import { toast } from "react-toastify"; | |
import { useState } from "react"; | |
const MailingList = () => { | |
const [mail, setMail] = useState(null); | |
const [loading, setLoading] = useState(false); | |
const subscribe = () => { | |
setLoading(true); |