summaryrefslogtreecommitdiffstatshomepage
path: root/webui/src/pages/bug
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/pages/bug')
-rw-r--r--webui/src/pages/bug/BugQuery.tsx5
-rw-r--r--webui/src/pages/bug/LabelChange.tsx4
-rw-r--r--webui/src/pages/bug/MessageHistoryDialog.tsx4
-rw-r--r--webui/src/pages/bug/TimelineQuery.tsx2
4 files changed, 8 insertions, 7 deletions
diff --git a/webui/src/pages/bug/BugQuery.tsx b/webui/src/pages/bug/BugQuery.tsx
index 244b08360..704dd0376 100644
--- a/webui/src/pages/bug/BugQuery.tsx
+++ b/webui/src/pages/bug/BugQuery.tsx
@@ -1,6 +1,6 @@
import CircularProgress from '@mui/material/CircularProgress';
import * as React from 'react';
-import { useParams } from 'react-router-dom';
+import { useParams } from 'react-router';
import NotFoundPage from '../notfound/NotFoundPage';
@@ -16,7 +16,8 @@ const BugQuery: React.FC = () => {
});
if (loading) return <CircularProgress />;
if (!data?.repository?.bug) return <NotFoundPage />;
- if (error) return <p>Error: {error}</p>;
+ if (error) return <p>Error: {error.message}</p>;
+
return <Bug bug={data.repository.bug} />;
};
diff --git a/webui/src/pages/bug/LabelChange.tsx b/webui/src/pages/bug/LabelChange.tsx
index 6b356d14a..28fc47433 100644
--- a/webui/src/pages/bug/LabelChange.tsx
+++ b/webui/src/pages/bug/LabelChange.tsx
@@ -35,12 +35,12 @@ function LabelChange({ op }: Props) {
<Author author={op.author} className={classes.author} />
{added.length > 0 && <span> added the </span>}
{added.map((label, index) => (
- <Label key={index} label={label} className={classes.label} />
+ <Label inline key={index} label={label} className={classes.label} />
))}
{added.length > 0 && removed.length > 0 && <span> and</span>}
{removed.length > 0 && <span> removed the </span>}
{removed.map((label, index) => (
- <Label key={index} label={label} className={classes.label} />
+ <Label inline key={index} label={label} className={classes.label} />
))}
<span>
{' '}
diff --git a/webui/src/pages/bug/MessageHistoryDialog.tsx b/webui/src/pages/bug/MessageHistoryDialog.tsx
index 77f82d86f..7523d5c08 100644
--- a/webui/src/pages/bug/MessageHistoryDialog.tsx
+++ b/webui/src/pages/bug/MessageHistoryDialog.tsx
@@ -17,9 +17,9 @@ import createStyles from '@mui/styles/createStyles';
import withStyles from '@mui/styles/withStyles';
import moment from 'moment';
import * as React from 'react';
-import Moment from 'react-moment';
import Content from '../../components/Content';
+import Moment from '../../components/Moment';
import { AddCommentFragment } from './MessageCommentFragment.generated';
import { CreateFragment } from './MessageCreateFragment.generated';
@@ -159,7 +159,7 @@ function MessageHistoryDialog({ bugId, commentId, open, onClose }: Props) {
Something went wrong...
</DialogTitle>
<DialogContent dividers>
- <p>Error: {error}</p>
+ <p>Error: {error.message}</p>
</DialogContent>
</Dialog>
);
diff --git a/webui/src/pages/bug/TimelineQuery.tsx b/webui/src/pages/bug/TimelineQuery.tsx
index ab9e4cd6f..3b55270cb 100644
--- a/webui/src/pages/bug/TimelineQuery.tsx
+++ b/webui/src/pages/bug/TimelineQuery.tsx
@@ -17,7 +17,7 @@ const TimelineQuery = ({ bug }: Props) => {
});
if (loading) return <CircularProgress />;
- if (error) return <p>Error: {error}</p>;
+ if (error) return <p>Error: {error.message}</p>;
const nodes = data?.repository?.bug?.timeline.nodes;
if (!nodes) {