Skip to content

Commit f6f803d

Browse files
committed
changeset: first production-ready Release 0.1
1 parent ab485f5 commit f6f803d

File tree

16 files changed

+20
-20
lines changed

16 files changed

+20
-20
lines changed

.husky/pre-push

100644100755
File mode changed.

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.0",
2+
"version": "0.1",
33
"configurations": [
44
{
55
"name": "Next.js: debug server-side",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "codeforce-students-store",
33
"author": "CodeForce Team",
44
"description": "Student marketplace for affordable, second hand products.",
5-
"version": "0.1.0",
5+
"version": "0.1",
66
"license": "MIT",
77
"homepage": "recoded_student-store_codeForce-cap",
88
"private": true,

src/components/EditProfile/EditProfile.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// ! The libraries that been used in this code
22
import { doc, updateDoc } from "firebase/firestore"
33
import { getStorage, ref, uploadBytes } from "firebase/storage"
4-
import { withTranslation } from "next-i18next"
54
import dynamic from "next/dynamic"
65
import Image from "next/image"
6+
import { withTranslation } from "next-i18next"
77
import { useState } from "react"
88
import PhoneInput from "react-phone-input-2"
9-
import { ToastContainer, toast } from "react-toastify"
9+
import { toast, ToastContainer } from "react-toastify"
1010

1111
// ! The phone input default style
1212
import "react-phone-input-2/lib/style.css"

src/components/EditProfile/__test__/__snapshots__/EditeProfile.test.jsx.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ exports[`renders correctly 1`] = `
44
<form
55
onSubmit={[Function]}
66
>
7+
<div
8+
className="Toastify"
9+
/>
710
<div
811
className="grid lg:grid-cols-2 lg:ml-36 w-[86%] overflow-y-auto gap-x-12 mt-10 lg:mt-28 mx-auto h-[577px] md:h-[744px] lg:h-[100%]"
912
>
@@ -49,11 +52,9 @@ exports[`renders correctly 1`] = `
4952
minLength={2}
5053
name="name"
5154
onChange={[Function]}
52-
pattern="[a-zA-Z]+"
5355
placeholder="name"
5456
required={true}
5557
type="text"
56-
value=""
5758
/>
5859
<input
5960
autoComplete="off"
@@ -62,7 +63,6 @@ exports[`renders correctly 1`] = `
6263
minLength={2}
6364
name="surname"
6465
onChange={[Function]}
65-
pattern="[a-zA-Z]+"
6666
placeholder="surname"
6767
required={true}
6868
type="text"

src/components/ListingItems/ListingItems.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import DOMPurify from "dompurify"
22
import { addDoc, collection } from "firebase/firestore"
33
import { getDownloadURL, ref, uploadBytes } from "firebase/storage"
4-
import { useTranslation, withTranslation } from "next-i18next"
54
import Image from "next/image"
5+
import { useTranslation, withTranslation } from "next-i18next"
66
import { useEffect, useState } from "react"
7-
import { ToastContainer, toast } from "react-toastify"
7+
import { toast, ToastContainer } from "react-toastify"
88

99
import "react-toastify/dist/ReactToastify.css"
1010

src/components/Navbar/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ProgressBar from "@ramonak/react-progress-bar"
2-
import { withTranslation } from "next-i18next"
32
import Image from "next/image"
43
import Link from "next/link"
4+
import { withTranslation } from "next-i18next"
55
import { useEffect, useState } from "react"
66
import { useAuthState } from "react-firebase-hooks/auth"
77
import {

src/components/SideBar/SideBar.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { withTranslation } from "next-i18next"
21
import Image from "next/image"
2+
import { withTranslation } from "next-i18next"
33

44
import { useProfileData } from "@/utils/store"
55

src/components/Signin/Signin.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { withTranslation } from "next-i18next"
21
import Image from "next/image"
32
import Link from "next/link"
43
import { useRouter } from "next/router"
4+
import { withTranslation } from "next-i18next"
55
import { useState } from "react"
66
import { BsFacebook, BsGoogle, BsTwitter } from "react-icons/bs"
7-
import { ToastContainer, toast } from "react-toastify"
7+
import { toast, ToastContainer } from "react-toastify"
88

99
import "react-toastify/dist/ReactToastify.css"
1010
import styles from "./Signin.module.css"

src/components/UserListings/UserListings.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { withTranslation } from "next-i18next"
21
import Image from "next/image"
2+
import { withTranslation } from "next-i18next"
33

44
import products from "../ProductList/products"
55

src/components/UserOrders/UserOrders.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { withTranslation } from "next-i18next"
21
import Image from "next/image"
2+
import { withTranslation } from "next-i18next"
33

44
import products from "../ProductList/products"
55

src/components/signup/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import DOMPurify from "dompurify"
2-
import { withTranslation } from "next-i18next"
32
import Image from "next/image"
43
import Link from "next/link"
54
import { useRouter } from "next/router"
5+
import { withTranslation } from "next-i18next"
66
import { useState } from "react"
77
import { BsFacebook, BsGoogle, BsTwitter } from "react-icons/bs"
88
import { toast } from "react-toastify"

src/pages/listing.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { useRouter } from "next/router"
12
import { useTranslation } from "next-i18next"
23
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
3-
import { useRouter } from "next/router"
44
import { useEffect } from "react"
55
import { toast } from "react-toastify"
66

src/pages/signup.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { useRouter } from "next/router"
12
import { useTranslation } from "next-i18next"
23
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
3-
import { useRouter } from "next/router"
44
import { useEffect } from "react"
55
import { toast, ToastContainer } from "react-toastify"
66

src/utils/firebase/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import { getApps, initializeApp } from "firebase/app"
33
import {
44
FacebookAuthProvider,
5-
GoogleAuthProvider,
65
getAuth,
6+
GoogleAuthProvider,
77
} from "firebase/auth"
88
import { getFirestore, serverTimestamp } from "firebase/firestore"
99
import { getStorage } from "firebase/storage"

src/utils/firebase/signout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getAuth, signOut } from "firebase/auth"
2-
import { withTranslation } from "next-i18next"
32
import { useRouter } from "next/router"
3+
import { withTranslation } from "next-i18next"
44
import { TbLogout } from "react-icons/tb"
55
import { toast } from "react-toastify"
66

0 commit comments

Comments
 (0)