Skip to content

Commit

Permalink
🚨 fix liniting
Browse files Browse the repository at this point in the history
  • Loading branch information
jainpranayr committed Oct 11, 2022
1 parent f6ed8f5 commit 08f1eb2
Show file tree
Hide file tree
Showing 26 changed files with 1,368 additions and 1,368 deletions.
90 changes: 45 additions & 45 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
{
"name": "frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@sanity/client": "^2.23.2",
"@sanity/image-url": "^1.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-google-login": "^5.2.2",
"react-icons": "^4.3.1",
"react-loader-spinner": "^4.0.0",
"react-masonry-css": "^1.0.16",
"react-router-dom": "^6.2.1",
"react-scripts": "^5.0.0",
"uuid": "^8.3.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"autoprefixer": "^10.4.0",
"postcss": "^8.4.5",
"tailwindcss": "^3.0.7"
}
"name": "frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@sanity/client": "^2.23.2",
"@sanity/image-url": "^1.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-google-login": "^5.2.2",
"react-icons": "^4.3.1",
"react-loader-spinner": "^4.0.0",
"react-masonry-css": "^1.0.16",
"react-router-dom": "^6.2.1",
"react-scripts": "^5.0.0",
"uuid": "^8.3.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"autoprefixer": "^10.4.0",
"postcss": "^8.4.5",
"tailwindcss": "^3.0.7"
}
}
8 changes: 4 additions & 4 deletions frontend/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
22 changes: 11 additions & 11 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="./favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<title>Pin it!</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
<head>
<meta charset="utf-8" />
<link rel="icon" href="./favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<title>Pin it!</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
36 changes: 18 additions & 18 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import { useEffect } from "react"
import { Routes, Route, useNavigate } from "react-router-dom"
import { useEffect } from 'react'
import { Routes, Route, useNavigate } from 'react-router-dom'

import { Login } from "./components"
import { Home } from "./containers"
import { Login } from './components'
import { Home } from './containers'

const App = () => {
const navigate = useNavigate()
useEffect(() => {
const User =
localStorage.getItem("user") !== "undefined"
? JSON.parse(localStorage.getItem("user"))
: localStorage.clear()
const navigate = useNavigate()
useEffect(() => {
const User =
localStorage.getItem('user') !== 'undefined'
? JSON.parse(localStorage.getItem('user'))
: localStorage.clear()

if (!User) navigate("/login")
}, [navigate])
if (!User) navigate('/login')
}, [navigate])

return (
<Routes>
<Route path='login' element={<Login />} />
<Route path='/*' element={<Home />} />
</Routes>
)
return (
<Routes>
<Route path='login' element={<Login />} />
<Route path='/*' element={<Home />} />
</Routes>
)
}

export default App
14 changes: 7 additions & 7 deletions frontend/src/client.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import sanityClient from "@sanity/client"
import imageUrlBuilder from "@sanity/image-url"
import sanityClient from '@sanity/client'
import imageUrlBuilder from '@sanity/image-url'

export const client = sanityClient({
projectId: process.env.REACT_APP_SANITY_PROJECT_ID,
dataset: "production",
apiVersion: "2021-11-16",
useCdn: true,
token: process.env.REACT_APP_SANITY_TOKEN,
projectId: process.env.REACT_APP_SANITY_PROJECT_ID,
dataset: 'production',
apiVersion: '2021-11-16',
useCdn: true,
token: process.env.REACT_APP_SANITY_TOKEN,
})

const builder = imageUrlBuilder(client)
Expand Down
Loading

1 comment on commit 08f1eb2

@vercel
Copy link

@vercel vercel bot commented on 08f1eb2 Oct 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.