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
"use client"; | |
import React, { useEffect, useState } from "react"; | |
import { Skeleton } from "@/components/ui/skeleton"; | |
import axios from "axios"; | |
const Offerings = ({ user }) => { | |
const [limits, setLimits] = useState<any>({}); | |
const [offeringsElem, setOfferingsElem] = useState([]); |
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
"use client"; | |
import { ApiResponse } from "@/types/ApiResponse"; | |
import { zodResolver } from "@hookform/resolvers/zod"; | |
import Link from "next/link"; | |
import { useEffect, useState } from "react"; | |
import { useForm } from "react-hook-form"; | |
import { useDebounceCallback } from "usehooks-ts"; | |
import * as z from "zod"; |
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 dbConnect from "@/lib/dbConnect"; | |
import UserModel from "@/model/User"; | |
import bcrypt from "bcryptjs"; | |
import { sendVerificationEmail } from "@/helpers/sendVerificationEmail"; | |
export async function POST(request:Request) { | |
//nextjs is edge timed so we will need to connect the database first | |
await dbConnect(); | |
try { |
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 { Tailwind } from "@onedoc/react-print"; | |
import { MdEmail, MdLocationOn, MdOutlineMail } from "react-icons/md"; | |
import { FaExternalLinkAlt, FaJava, FaLinkedin } from "react-icons/fa"; | |
import { Mulish } from "next/font/google"; | |
const mulish = Mulish({ subsets: ['latin'] }) | |
export const OneDocComponent2 = () => { return ( | |
<Tailwind> | |
<div className={`main flex flex-col ${mulish.className}`}> |