Skip to content

Commit ea75708

Browse files
committed
chore(site): organize imports
1 parent 63916b6 commit ea75708

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+107
-122
lines changed

site/.storybook/preview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import ThemeProvider from "@material-ui/styles/ThemeProvider"
22
import { withThemes } from "@react-theming/storybook-addon"
3-
import { light, dark } from "../src/theme"
4-
import { addDecorator } from "node_modules/@storybook/react"
53
import { createMemoryHistory } from "history"
4+
import { addDecorator } from "node_modules/@storybook/react"
65
import { unstable_HistoryRouter as HistoryRouter } from "react-router-dom"
6+
import { dark, light } from "../src/theme"
77
import "../src/theme/global-fonts"
88

99
addDecorator(withThemes(ThemeProvider, [light, dark]))

site/e2e/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as path from "path"
21
import { PlaywrightTestConfig } from "@playwright/test"
2+
import * as path from "path"
33

44
const config: PlaywrightTestConfig = {
55
testDir: "tests",

site/e2e/tests/login.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test } from "@playwright/test"
2-
import { ProjectsPage, SignInPage } from "../pom"
32
import { email, password } from "../constants"
3+
import { ProjectsPage, SignInPage } from "../pom"
44
import { waitForClientSideNavigation } from "./../util"
55

66
test("Login takes user to /projects", async ({ baseURL, page }) => {

site/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"mini-css-extract-plugin": "2.6.0",
8181
"msw": "0.39.2",
8282
"prettier": "2.6.2",
83+
"prettier-plugin-organize-imports": "2.3.4",
8384
"react-hot-loader": "4.13.0",
8485
"sql-formatter": "4.0.2",
8586
"style-loader": "3.3.1",

site/src/AppRouter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
2-
import { Routes, Route } from "react-router-dom"
3-
import { RequireAuth, AuthAndNav } from "./components"
2+
import { Route, Routes } from "react-router-dom"
3+
import { AuthAndNav, RequireAuth } from "./components"
44
import { IndexPage } from "./pages"
55
import { NotFoundPage } from "./pages/404"
66
import { CliAuthenticationPage } from "./pages/cli-auth"

site/src/Main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { inspect } from "@xstate/inspect"
12
import React from "react"
23
import ReactDOM from "react-dom"
3-
import { inspect } from "@xstate/inspect"
44
import { Interpreter } from "xstate"
55
import { App } from "./app"
66

site/src/api/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from "axios"
22
import { getApiKey, login, logout } from "."
3-
import { LoginResponse, APIKeyResponse } from "./types"
3+
import { APIKeyResponse, LoginResponse } from "./types"
44

55
// Mock the axios module so that no real network requests are made, but rather
66
// we swap in a resolved or rejected value

site/src/app.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import React from "react"
21
import CssBaseline from "@material-ui/core/CssBaseline"
32
import ThemeProvider from "@material-ui/styles/ThemeProvider"
4-
import { SWRConfig } from "swr"
5-
import { light } from "./theme"
3+
import React from "react"
64
import { BrowserRouter as Router } from "react-router-dom"
7-
8-
import { XServiceProvider } from "./xServices/StateContext"
5+
import { SWRConfig } from "swr"
96
import { AppRouter } from "./AppRouter"
7+
import { light } from "./theme"
108
import "./theme/global-fonts"
9+
import { XServiceProvider } from "./xServices/StateContext"
1110

1211
export const App: React.FC = () => {
1312
return (

site/src/components/Button/CopyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { makeStyles } from "@material-ui/core/styles"
21
import Button from "@material-ui/core/Button"
2+
import { makeStyles } from "@material-ui/core/styles"
33
import Tooltip from "@material-ui/core/Tooltip"
44
import Check from "@material-ui/icons/Check"
55
import React, { useState } from "react"

site/src/components/Button/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from "./SplitButton"
2-
export * from "./LoadingButton"
31
export * from "./CopyButton"
2+
export * from "./LoadingButton"
3+
export * from "./SplitButton"

0 commit comments

Comments
 (0)