Skip to content

Commit 93e68ac

Browse files
committed
elintfix
Signed-off-by: ChetanFTW <[email protected]>
1 parent b4b909b commit 93e68ac

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

site/src/pages/index.js

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React, { useState } from "react";
1+
import React from "react";
22
import styled, { ThemeProvider } from "styled-components";
33
import { GlobalStyle, Main, lightTheme, darkTheme } from "../styles/styles";
44
import { useDarkMode } from "../components/useDarkMode";
55
import Navigation from "../components/Navigation";
66
import Footer from "../components/Footer";
77
import ShapeBuilder from "../components/ShapeBuilder";
8-
import { SistentThemeProviderWithoutBaseLine, Box, Button } from "@sistent/sistent";
8+
import { SistentThemeProviderWithoutBaseLine } from "@sistent/sistent";
99

1010
const Kbd = styled.kbd`
1111
background-color: ${({ theme }) =>
@@ -48,7 +48,6 @@ const IndexPage = () => {
4848
const [theme, toggleTheme] = useDarkMode();
4949
const themeMode = theme === "light" ? lightTheme : darkTheme;
5050
const activeTheme = { ...themeMode, mode: theme };
51-
const [, setOpen] = useState(false);
5251

5352
return (
5453
<SistentThemeProviderWithoutBaseLine>
@@ -62,25 +61,25 @@ const IndexPage = () => {
6261
<p className="desc-text">
6362
Click on the grid to start creating a polygon. Each click adds a point.
6463
</p>
65-
{/* Key Strokes Section */}
66-
<div style={{ textAlign: "center", marginTop: "2rem", width: "100%" }}>
67-
<h2> Controls</h2>
68-
<InstructionsContainer>
69-
<span>
70-
<Kbd theme={activeTheme}>ENTER</Kbd> /{" "}
71-
<Kbd theme={activeTheme}>ESC</Kbd> Close shape
72-
</span>
64+
{/* Key Strokes Section */}
65+
<div style={{ textAlign: "center", marginTop: "2rem", width: "100%" }}>
66+
<h2> Controls</h2>
67+
<InstructionsContainer>
68+
<span>
69+
<Kbd theme={activeTheme}>ENTER</Kbd> /{" "}
70+
<Kbd theme={activeTheme}>ESC</Kbd> Close shape
71+
</span>
7372

74-
<span>
75-
<Kbd theme={activeTheme}>CTRL</Kbd> Snap to grid
76-
</span>
73+
<span>
74+
<Kbd theme={activeTheme}>CTRL</Kbd> Snap to grid
75+
</span>
7776

78-
<span>
79-
<Kbd theme={activeTheme}>CTRL</Kbd> +{" "}
80-
<Kbd theme={activeTheme}>Z</Kbd> Undo
81-
</span>
82-
</InstructionsContainer>
83-
</div>
77+
<span>
78+
<Kbd theme={activeTheme}>CTRL</Kbd> +{" "}
79+
<Kbd theme={activeTheme}>Z</Kbd> Undo
80+
</span>
81+
</InstructionsContainer>
82+
</div>
8483
</section>
8584
<ShapeBuilder />
8685
</Main>

0 commit comments

Comments
 (0)