Merge pull request #555 from claudioantonio/master

Michael Muré created

Commit for #541

Change summary

webui/src/App.tsx                                            | 2 +-
webui/src/components/Author.tsx                              | 2 +-
webui/src/components/CommentInput/CommentInput.tsx           | 0 
webui/src/components/CurrentIdentity/CurrentIdentity.graphql | 0 
webui/src/components/CurrentIdentity/CurrentIdentity.tsx     | 0 
webui/src/components/Header/Header.tsx                       | 2 +-
webui/src/components/Header/index.tsx                        | 0 
webui/src/components/IfLoggedIn/IfLoggedIn.tsx               | 2 +-
webui/src/components/Label.tsx                               | 3 +--
webui/src/graphql/fragments.graphql                          | 0 
webui/src/pages/bug/Bug.tsx                                  | 2 +-
webui/src/pages/bug/CommentForm.tsx                          | 2 +-
webui/src/pages/new/NewBugPage.tsx                           | 2 +-
13 files changed, 8 insertions(+), 9 deletions(-)

Detailed changes

webui/src/App.tsx 🔗

@@ -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';

webui/src/components/Author.tsx 🔗

@@ -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;

webui/src/layout/Header.tsx → webui/src/components/Header/Header.tsx 🔗

@@ -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: {

webui/src/layout/IfLoggedIn.tsx → webui/src/components/IfLoggedIn/IfLoggedIn.tsx 🔗

@@ -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) => {

webui/src/components/Label.tsx 🔗

@@ -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;
 

webui/src/pages/bug/Bug.tsx 🔗

@@ -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';

webui/src/pages/bug/CommentForm.tsx 🔗

@@ -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';
 

webui/src/pages/new/NewBugPage.tsx 🔗

@@ -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';