diff options
-rw-r--r-- | webui/src/App.tsx | 2 | ||||
-rw-r--r-- | webui/src/components/Author.tsx | 2 | ||||
-rw-r--r-- | webui/src/components/CommentInput/CommentInput.tsx (renamed from webui/src/layout/CommentInput/CommentInput.tsx) | 0 | ||||
-rw-r--r-- | webui/src/components/CurrentIdentity/CurrentIdentity.graphql (renamed from webui/src/layout/CurrentIdentity.graphql) | 0 | ||||
-rw-r--r-- | webui/src/components/CurrentIdentity/CurrentIdentity.tsx (renamed from webui/src/layout/CurrentIdentity.tsx) | 0 | ||||
-rw-r--r-- | webui/src/components/Header/Header.tsx (renamed from webui/src/layout/Header.tsx) | 2 | ||||
-rw-r--r-- | webui/src/components/Header/index.tsx (renamed from webui/src/layout/index.tsx) | 0 | ||||
-rw-r--r-- | webui/src/components/IfLoggedIn/IfLoggedIn.tsx (renamed from webui/src/layout/IfLoggedIn.tsx) | 2 | ||||
-rw-r--r-- | webui/src/components/Label.tsx | 3 | ||||
-rw-r--r-- | webui/src/graphql/fragments.graphql (renamed from webui/src/components/fragments.graphql) | 0 | ||||
-rw-r--r-- | webui/src/pages/bug/Bug.tsx | 2 | ||||
-rw-r--r-- | webui/src/pages/bug/CommentForm.tsx | 2 | ||||
-rw-r--r-- | webui/src/pages/new/NewBugPage.tsx | 2 |
13 files changed, 8 insertions, 9 deletions
diff --git a/webui/src/App.tsx b/webui/src/App.tsx index 3a5ef0254..b9ade9740 100644 --- a/webui/src/App.tsx +++ b/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'; diff --git a/webui/src/components/Author.tsx b/webui/src/components/Author.tsx index 9ac1da527..d60e8969f 100644 --- a/webui/src/components/Author.tsx +++ b/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; diff --git a/webui/src/layout/CommentInput/CommentInput.tsx b/webui/src/components/CommentInput/CommentInput.tsx index 86cc7dbbd..86cc7dbbd 100644 --- a/webui/src/layout/CommentInput/CommentInput.tsx +++ b/webui/src/components/CommentInput/CommentInput.tsx diff --git a/webui/src/layout/CurrentIdentity.graphql b/webui/src/components/CurrentIdentity/CurrentIdentity.graphql index 2794a40f1..2794a40f1 100644 --- a/webui/src/layout/CurrentIdentity.graphql +++ b/webui/src/components/CurrentIdentity/CurrentIdentity.graphql diff --git a/webui/src/layout/CurrentIdentity.tsx b/webui/src/components/CurrentIdentity/CurrentIdentity.tsx index 8cd3585b0..8cd3585b0 100644 --- a/webui/src/layout/CurrentIdentity.tsx +++ b/webui/src/components/CurrentIdentity/CurrentIdentity.tsx diff --git a/webui/src/layout/Header.tsx b/webui/src/components/Header/Header.tsx index b0fae3cc9..3e39b5f35 100644 --- a/webui/src/layout/Header.tsx +++ b/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: { diff --git a/webui/src/layout/index.tsx b/webui/src/components/Header/index.tsx index 42a0cfc1b..42a0cfc1b 100644 --- a/webui/src/layout/index.tsx +++ b/webui/src/components/Header/index.tsx diff --git a/webui/src/layout/IfLoggedIn.tsx b/webui/src/components/IfLoggedIn/IfLoggedIn.tsx index 9f4a75767..2476aad87 100644 --- a/webui/src/layout/IfLoggedIn.tsx +++ b/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) => { diff --git a/webui/src/components/Label.tsx b/webui/src/components/Label.tsx index 4aaa6bb61..111f6d7ff 100644 --- a/webui/src/components/Label.tsx +++ b/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; diff --git a/webui/src/components/fragments.graphql b/webui/src/graphql/fragments.graphql index 03a235f9b..03a235f9b 100644 --- a/webui/src/components/fragments.graphql +++ b/webui/src/graphql/fragments.graphql diff --git a/webui/src/pages/bug/Bug.tsx b/webui/src/pages/bug/Bug.tsx index bd6e44c41..d85c52966 100644 --- a/webui/src/pages/bug/Bug.tsx +++ b/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'; diff --git a/webui/src/pages/bug/CommentForm.tsx b/webui/src/pages/bug/CommentForm.tsx index c623dabb9..0b97e1333 100644 --- a/webui/src/pages/bug/CommentForm.tsx +++ b/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'; diff --git a/webui/src/pages/new/NewBugPage.tsx b/webui/src/pages/new/NewBugPage.tsx index c70cddaad..c9e268b60 100644 --- a/webui/src/pages/new/NewBugPage.tsx +++ b/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'; |