From bb996aa0ae4809ba51d4380ea6314957dd9fcd0a Mon Sep 17 00:00:00 2001 From: Srishty M Date: Wed, 9 Oct 2024 15:14:14 +0530 Subject: [PATCH] fix: prettier --- package.json | 13 ++++++------- src/app/components/NavBar/Nav.jsx | 6 +++--- src/app/components/NavBar/styles.jsx | 2 +- src/app/components/shared/Typography/Heading1.jsx | 4 ++-- src/app/config/content/NavData.js | 8 ++++---- src/app/lib/registry.js | 14 ++++++-------- src/app/playground/page.js | 3 ++- src/components/shared/Typography/Headings.jsx | 4 ++-- 8 files changed, 26 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index b6eb06df..2386f9a6 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,8 @@ { "name": "inno-24", - "version": "0.1.0", + "version": "1.3.0", "private": true, "description": "Official repository for Innovision 2023", - "version": "1.3.0", "license": "MIT", "main": "src/pages/index.js", "keywords": [ @@ -35,18 +34,18 @@ }, "dependencies": { "@babel/core": "^7.25.2", - "hamburger-react": "^2.5.1", "@nextui-org/react": "^2.4.8", - "framer-motion": "^11.5.6", "@react-three/drei": "^9.112.1", "@react-three/fiber": "^8.17.7", + "framer-motion": "^11.5.6", + "hamburger-react": "^2.5.1", "next": "14.2.12", "react": "^18", "react-dom": "^18", "styled-components": "^6.1.13", "swiper": "^11.1.14", - "twin.macro": "^3.4.1", "three": "^0.168.0", + "twin.macro": "^3.4.1", "yarn": "^1.22.22" }, "devDependencies": { @@ -67,7 +66,7 @@ "eslint-plugin-react-hooks": "^4.2.0", "husky": "^8.0.3", "lint-staged": "^14.0.1", - "prettier": "^3.0.3", + "prettier": "^3.3.3", "tailwindcss": "^3.4.12" }, "lint-staged": { @@ -84,4 +83,4 @@ "preset": "styled-components" } } -} \ No newline at end of file +} diff --git a/src/app/components/NavBar/Nav.jsx b/src/app/components/NavBar/Nav.jsx index 3374c19c..194c04d2 100644 --- a/src/app/components/NavBar/Nav.jsx +++ b/src/app/components/NavBar/Nav.jsx @@ -1,6 +1,6 @@ -import React from "react"; -import { NavContainer, NavItem } from "./styles"; -import { NavData } from "@/app/config/content/NavData"; +import React from 'react'; +import { NavContainer, NavItem } from './styles'; +import { NavData } from '@/app/config/content/NavData'; export const NavBar = () => { return ( diff --git a/src/app/components/NavBar/styles.jsx b/src/app/components/NavBar/styles.jsx index 443bc97a..3acce3be 100644 --- a/src/app/components/NavBar/styles.jsx +++ b/src/app/components/NavBar/styles.jsx @@ -1,4 +1,4 @@ -import styled from "styled-components"; +import styled from 'styled-components'; export const NavContainer = styled.nav` background-color: #005566; diff --git a/src/app/components/shared/Typography/Heading1.jsx b/src/app/components/shared/Typography/Heading1.jsx index d807ce15..3c5515df 100644 --- a/src/app/components/shared/Typography/Heading1.jsx +++ b/src/app/components/shared/Typography/Heading1.jsx @@ -1,7 +1,7 @@ -import styled from "styled-components"; +import styled from 'styled-components'; const Heading1 = styled.h1` - font-family: "Poppins", sans-serif; + font-family: 'Poppins', sans-serif; font-size: 2.5rem; font-weight: 700; margin: 0; diff --git a/src/app/config/content/NavData.js b/src/app/config/content/NavData.js index a0282e14..27c8f755 100644 --- a/src/app/config/content/NavData.js +++ b/src/app/config/content/NavData.js @@ -1,10 +1,10 @@ export const NavData = [ { - text: "Home", - path: "/", + text: 'Home', + path: '/', }, { - text: "Playground", - path: "/playground", + text: 'Playground', + path: '/playground', }, ]; diff --git a/src/app/lib/registry.js b/src/app/lib/registry.js index acde46f4..806169cb 100644 --- a/src/app/lib/registry.js +++ b/src/app/lib/registry.js @@ -1,8 +1,8 @@ -"use client"; +'use client'; -import React, { useState } from "react"; -import { useServerInsertedHTML } from "next/navigation"; -import { ServerStyleSheet, StyleSheetManager } from "styled-components"; +import React, { useState } from 'react'; +import { useServerInsertedHTML } from 'next/navigation'; +import { ServerStyleSheet, StyleSheetManager } from 'styled-components'; export default function StyledComponentsRegistry({ children }) { // Only create stylesheet once with lazy initial state @@ -15,11 +15,9 @@ export default function StyledComponentsRegistry({ children }) { return <>{styles}; }); - if (typeof window !== "undefined") return <>{children}; + if (typeof window !== 'undefined') return <>{children}; return ( - - {children} - + {children} ); } diff --git a/src/app/playground/page.js b/src/app/playground/page.js index 38eebc7b..38d7a6e0 100644 --- a/src/app/playground/page.js +++ b/src/app/playground/page.js @@ -1,4 +1,5 @@ 'use client'; +import Image from 'next/image'; import { LogoText, SubLogoText, Heading1, Heading2 } from '@/components/shared/Typography/Headings'; import { Paragraph, SubParagraph, SmallParagraph } from '@/components/shared/Typography/Paragraphs'; import { PrimaryButton, SecondaryButton } from '@/components/shared/Typography/Buttons'; @@ -39,7 +40,7 @@ const Page = () => {
Get Started -