From 024d2a58f3b27a9096847f306790d97a0a268023 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Sun, 19 Apr 2020 12:13:08 +0200 Subject: [PATCH] [Chore] apply default exports and cleaner imports --- client/src/App.tsx | 2 +- client/src/components/Cards/HorizontalCard.tsx | 2 +- client/src/components/Modals/NewProjectModal.tsx | 4 ++-- client/src/controllers/ProjectController.tsx | 2 +- client/src/controllers/TicketController.tsx | 2 +- client/src/controllers/UserController.tsx | 2 +- client/src/index.jsx | 2 +- client/src/types/Activity.ts | 4 ++-- client/src/types/AppFile.ts | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 3e3e43c..ab5f092 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -1,9 +1,9 @@ import React from "react"; import { Router } from "react-router-dom"; import { useAuth0 } from "./authentication/auth0"; -import { history } from "./utils/history"; import MainLayout from "./layouts/MainLayout"; import AppRouter from "./routes/AppRouter"; +import history from "./utils/history"; export default function App() { const { loading } = useAuth0(); diff --git a/client/src/components/Cards/HorizontalCard.tsx b/client/src/components/Cards/HorizontalCard.tsx index 5450912..a8d5732 100644 --- a/client/src/components/Cards/HorizontalCard.tsx +++ b/client/src/components/Cards/HorizontalCard.tsx @@ -2,7 +2,7 @@ import React, { FC, ReactNode } from "react"; import { Link } from "react-router-dom"; import { makeStyles } from "@material-ui/core/styles"; import { Card, CardActions, CardContent, Typography } from "@material-ui/core"; -import { ProgressBar } from "../Progress/ProgressBar"; +import ProgressBar from "../Progress/ProgressBar"; interface IProps { title?: string; diff --git a/client/src/components/Modals/NewProjectModal.tsx b/client/src/components/Modals/NewProjectModal.tsx index 3ade31b..69f3b03 100644 --- a/client/src/components/Modals/NewProjectModal.tsx +++ b/client/src/components/Modals/NewProjectModal.tsx @@ -1,9 +1,9 @@ import React, { FC, useState, FormEvent } from "react"; -import TextField from "@material-ui/core"; +import { TextField } from "@material-ui/core"; import Modal from "./Modal"; import Project from "../../types/Project"; import User from "../../types/User"; -import post from "../../utils/http"; +import { post } from "../../utils/http"; import Constants from "../../utils/Constants"; interface IProps { diff --git a/client/src/controllers/ProjectController.tsx b/client/src/controllers/ProjectController.tsx index 02fed22..52208aa 100644 --- a/client/src/controllers/ProjectController.tsx +++ b/client/src/controllers/ProjectController.tsx @@ -6,7 +6,7 @@ import ProjectVM from "../VM/ProjectVM"; import HttpResponse from "../types/HttpResponse"; import Project from "../types/Project"; import User from "../types/User"; -import { Preloader } from "../components/Preloader"; +import Preloader from "../components/Preloader"; import Constants from "../utils/Constants"; import { get } from "../utils/http"; diff --git a/client/src/controllers/TicketController.tsx b/client/src/controllers/TicketController.tsx index 38db429..8498acb 100644 --- a/client/src/controllers/TicketController.tsx +++ b/client/src/controllers/TicketController.tsx @@ -5,7 +5,7 @@ import TicketPage from "../pages/TicketPage"; import TicketVM from "../VM/TicketVM"; import HttpResponse from "../types/HttpResponse"; import Ticket from "../types/Ticket"; -import { Preloader } from "../components/Preloader"; +import Preloader from "../components/Preloader"; import { get } from "../utils/http"; import Constants from "../utils/Constants"; diff --git a/client/src/controllers/UserController.tsx b/client/src/controllers/UserController.tsx index 04855df..2a4f4f0 100644 --- a/client/src/controllers/UserController.tsx +++ b/client/src/controllers/UserController.tsx @@ -5,7 +5,7 @@ import UserPage from "../pages/UserPage"; import { UserVM } from "../VM/UserVM"; import HttpResponse from "../types/HttpResponse"; import User from "../types/User"; -import { Preloader } from "../components/Preloader"; +import Preloader from "../components/Preloader"; import Constants from "../utils/Constants"; import { get } from "../utils/http"; diff --git a/client/src/index.jsx b/client/src/index.jsx index 1acf58f..407bbac 100644 --- a/client/src/index.jsx +++ b/client/src/index.jsx @@ -4,7 +4,7 @@ import App from "./App"; import * as serviceWorker from "./serviceWorker"; import { Auth0Provider } from "./authentication/auth0"; import config from "./authentication/config.json"; -import { history } from "./utils/history"; +import history from "./utils/history"; const onRedirectCallback = (appState) => { history.push( diff --git a/client/src/types/Activity.ts b/client/src/types/Activity.ts index 6fe0128..d6d3c6c 100644 --- a/client/src/types/Activity.ts +++ b/client/src/types/Activity.ts @@ -1,5 +1,5 @@ -import { User } from "./User"; -import { Ticket } from "./Ticket"; +import User from "./User"; +import Ticket from "./Ticket"; export default interface Activity { id: number; diff --git a/client/src/types/AppFile.ts b/client/src/types/AppFile.ts index b402297..ee714f8 100644 --- a/client/src/types/AppFile.ts +++ b/client/src/types/AppFile.ts @@ -1,4 +1,4 @@ -import { User } from "./User"; +import User from "./User"; export default interface AppFile { id: number;