This file contains hidden or 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
rm -rf hello |
This file contains hidden or 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
{ | |
"categories": [ | |
{ | |
"id": 1, | |
"title": "Television", | |
"description": "A wide range of high-quality televisions.", | |
"image": "/json/categories/television.jpg", | |
"key": "CATEGORY_TELEVISION" | |
}, | |
{ |
This file contains hidden or 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
https://desishub.notion.site/How-to-create-a-Step-by-Step-Guide-Adding-Google-Authentication-with-NextAuth-in-Next-js-13-Prisma-2e08646b1875402e9d8cb988a108fd77 | |
This file contains hidden or 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 { useRouter } from "next/navigation"; | |
import React, { useState } from "react"; | |
const EditForm = ({ course }) => { | |
const [newtitle, setNewtitle] = useState(course.title); | |
const [newDescription, setNewDescription] = useState(course.description); | |
const [newPrice, setNewPrice] = useState(course.price); | |
const router = useRouter(); |
This file contains hidden or 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 from "react"; | |
import { useForm } from "react-hook-form"; | |
const Upload = () => { | |
const { register, handleSubmit } = useForm(); | |
async function onSumbithandler(data) { | |
const image = data.profile[0]; | |
// console.log(image); |
This file contains hidden or 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
STEP 1 : | |
public/fonts put all fonts | |
1 | |
2 | |
STEP 2 : | |
// @/utils/coustomFonts.js | |
import localFont from "next/font/local"; |