Detailed changes
@@ -1,7 +1,7 @@
import React from 'react';
import { Route, Switch } from 'react-router';
-import Layout from './layout';
+import Layout from './components/Header';
import BugPage from './pages/bug';
import ListPage from './pages/list';
import NewBugPage from './pages/new/NewBugPage';
@@ -3,7 +3,7 @@ import React from 'react';
import MAvatar from '@material-ui/core/Avatar';
import Tooltip from '@material-ui/core/Tooltip/Tooltip';
-import { AuthoredFragment } from './fragments.generated';
+import { AuthoredFragment } from '../graphql/fragments.generated';
type Props = AuthoredFragment & {
className?: string;
@@ -5,7 +5,7 @@ import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import { makeStyles } from '@material-ui/core/styles';
-import CurrentIdentity from './CurrentIdentity';
+import CurrentIdentity from '../CurrentIdentity/CurrentIdentity';
const useStyles = makeStyles((theme) => ({
offset: {
@@ -1,6 +1,6 @@
import React from 'react';
-import { useCurrentIdentityQuery } from './CurrentIdentity.generated';
+import { useCurrentIdentityQuery } from '../CurrentIdentity/CurrentIdentity.generated';
type Props = { children: () => React.ReactNode };
const IfLoggedIn = ({ children }: Props) => {
@@ -7,10 +7,9 @@ import {
darken,
} from '@material-ui/core/styles/colorManipulator';
+import { LabelFragment } from '../graphql/fragments.generated';
import { Color } from 'src/gqlTypes';
-import { LabelFragment } from './fragments.generated';
-
// Minimum contrast between the background and the text color
const contrastThreshold = 2.5;
@@ -3,8 +3,8 @@ import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import BugTitleForm from 'src/components/BugTitleForm/BugTitleForm';
+import IfLoggedIn from 'src/components/IfLoggedIn/IfLoggedIn';
import Label from 'src/components/Label';
-import IfLoggedIn from 'src/layout/IfLoggedIn';
import { BugFragment } from './Bug.generated';
import CommentForm from './CommentForm';
@@ -4,7 +4,7 @@ import Button from '@material-ui/core/Button';
import Paper from '@material-ui/core/Paper';
import { makeStyles, Theme } from '@material-ui/core/styles';
-import CommentInput from '../../layout/CommentInput/CommentInput';
+import CommentInput from '../../components/CommentInput/CommentInput';
import CloseBugButton from 'src/components/CloseBugButton/CloseBugButton';
import ReopenBugButton from 'src/components/ReopenBugButton/ReopenBugButton';
@@ -5,7 +5,7 @@ import Paper from '@material-ui/core/Paper';
import TextField from '@material-ui/core/TextField/TextField';
import { fade, makeStyles, Theme } from '@material-ui/core/styles';
-import CommentInput from '../../layout/CommentInput/CommentInput';
+import CommentInput from '../../components/CommentInput/CommentInput';
import { useNewBugMutation } from './NewBug.generated';