Skip to content

Commit

Permalink
fix: site build error
Browse files Browse the repository at this point in the history
Signed-off-by: Lakshya Satpal <[email protected]>
  • Loading branch information
lakshz committed Jan 5, 2024
1 parent a0a0529 commit 599a5ac
Show file tree
Hide file tree
Showing 32 changed files with 201 additions and 133 deletions.
9 changes: 8 additions & 1 deletion site/gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import React from 'react';

import { ThemeProvider } from './src/components/Theme';
import './src/styles/global.css';
import { BrowserRouter } from 'react-router-dom';

export const wrapRootElement = ({ element }) => <ThemeProvider>{element}</ThemeProvider>;
export const wrapRootElement = ({ element }) => (
<BrowserRouter>
<ThemeProvider>{element}</ThemeProvider>
</BrowserRouter>
);
7 changes: 7 additions & 0 deletions site/src/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"tabWidth": 2,
"printWidth": 100,
"singleQuote": true,
"trailingComma": "none"
}
2 changes: 1 addition & 1 deletion site/src/components/Dropdown/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react';
import { React, useState } from 'react';
import Sidebar from '../Sidebar';

const Dropdown = () => {
Expand Down
2 changes: 2 additions & 0 deletions site/src/components/Footer/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

const Footer = () => {
return (
<div className="ml-[17.5rem] pt-[5rem]">
Expand Down
2 changes: 2 additions & 0 deletions site/src/components/Navigation/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { useContext } from 'react';
import Search from '../../assets/images/Search.svg';
import SearchDark from '../../assets/images/SearchDark.svg';
Expand Down
2 changes: 2 additions & 0 deletions site/src/components/Sidebar/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { useState } from 'react';
import { Link } from 'react-router-dom';
import ChevronLightUp from '../../assets/images/Chevron-light-up.svg';
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/components/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

const Components = () => {
return <div className="text-center text-bold">Components</div>;
};
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/home/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

const Home = () => {
return <div className="text-center text-bold">Home</div>;
};
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/Content.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

const Content = (props) => {
return (
<div className="w-[844px] pt-8 text-gray-700 text-sm font-normal font-openSans leading-loose">
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/Heading.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

const Heading = (props) => {
return (
<div className="self-stretch text-gray-950 text-[52px] font-bold font-qanelas leading-[64px]">
Expand Down
5 changes: 4 additions & 1 deletion site/src/pages/identity/Navigation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Link } from 'react-router-dom';
import React from 'react';
import { BrowserRouter, Link } from 'react-router-dom';

const Navigation = (props) => {
console.log('naviation');
return (
<div className="w-[1120px] h-14 relative mt-[32px]">
<div className="w-[1160px] h-0.5 left-[-50px] top-[54px] absolute bg-gray-200" />
Expand All @@ -9,6 +11,7 @@ const Navigation = (props) => {
<Link
to={`/identity/${props.type}/overview`}
className="grow shrink basis-0 text-center text-emerald-700 text-base font-semibold font-openSans leading-7"
relative="path"
>
Overview
</Link>
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/Next.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { Link } from 'react-router-dom';
import nextIcon from '../../assets/images/Chevron-light.svg';

Expand Down
1 change: 1 addition & 0 deletions site/src/pages/identity/Previous.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import { Link } from 'react-router-dom';
import PrevIcon from '../../assets/images/Chevron-light.svg';

Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/Sidebar.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

const Sidebar = (props) => {
return (
<div className="float-right w-[11.25rem] h-[3.75rem] px-4 py-6 bg-slate-200 bg-opacity-10 rounded-lg backdrop-blur-lg flex-col justify-start items-start gap-4 inline-flex">
Expand Down
1 change: 1 addition & 0 deletions site/src/pages/identity/SubContent.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
const SubContent = (props) => {
return (
<>
Expand Down
1 change: 1 addition & 0 deletions site/src/pages/identity/SubHeading.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
const SubHeading = (props) => {
return (
<div className="w-[53.75rem] text-gray-950 text-[2rem] font-medium font-qanelas-medium leading-[3rem]">
Expand Down
1 change: 1 addition & 0 deletions site/src/pages/identity/SubText.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import SubContent from './SubContent';
import SubHeading from './SubHeading';
import React from 'react';

const SubText = (props) => {
return (
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/Text.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import Content from './Content';
import Heading from './Heading';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import Next from '../Next';
import Previous from '../Previous';
import Sidebar from '../Sidebar';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import Next from '../Next';
import Previous from '../Previous';
import Sidebar from '../Sidebar';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { useParams } from 'react-router-dom';
import Navigation from '../Navigation';
import Text from '../Text';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import Next from '../Next';
import Previous from '../Previous';
import Sidebar from '../Sidebar';
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/elevation/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

const Elevation = () => {
return <div className="text-center text-bold">Elevation</div>;
};
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/page-layouts/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

const PageLayout = () => {
return <div className="text-center text-bold">Page Layout</div>;
};
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/spacing/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

const Spacing = () => {
return <div className="text-center text-bold">Spacing</div>;
};
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/typography/code.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import Next from '../Next';
import Previous from '../Previous';
import Sidebar from '../Sidebar';
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/typography/guidance.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import Next from '../Next';
import Previous from '../Previous';
import Sidebar from '../Sidebar';
Expand Down
2 changes: 2 additions & 0 deletions site/src/pages/identity/typography/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { useParams } from 'react-router-dom';
import Navigation from '../Navigation';
import Text from '../Text';
Expand Down
Loading

0 comments on commit 599a5ac

Please sign in to comment.