aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components/BugTitleForm/BugTitleForm.tsx
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-03-03 21:09:44 +0100
committerSascha <GlancingMind@outlook.com>2021-03-04 20:54:04 +0100
commite040fc807e840fcde03a588884d195c44db254a2 (patch)
tree8352c286af58259205777213c2110214872445b6 /webui/src/components/BugTitleForm/BugTitleForm.tsx
parent50484fb97efd62aceafdbb78ed575e94ff7bb1fd (diff)
downloadgit-bug-e040fc807e840fcde03a588884d195c44db254a2.tar.gz
Implement title inputfield as custom component
Diffstat (limited to 'webui/src/components/BugTitleForm/BugTitleForm.tsx')
-rw-r--r--webui/src/components/BugTitleForm/BugTitleForm.tsx12
1 files changed, 4 insertions, 8 deletions
diff --git a/webui/src/components/BugTitleForm/BugTitleForm.tsx b/webui/src/components/BugTitleForm/BugTitleForm.tsx
index 08a1ac90..c31f8ef7 100644
--- a/webui/src/components/BugTitleForm/BugTitleForm.tsx
+++ b/webui/src/components/BugTitleForm/BugTitleForm.tsx
@@ -1,12 +1,6 @@
import React, { useState } from 'react';
-import {
- Button,
- fade,
- makeStyles,
- TextField,
- Typography,
-} from '@material-ui/core';
+import { Button, makeStyles, Typography } from '@material-ui/core';
import { TimelineDocument } from '../../pages/bug/TimelineQuery.generated';
import IfLoggedIn from '../IfLoggedIn/IfLoggedIn';
@@ -14,6 +8,7 @@ import Author from 'src/components/Author';
import Date from 'src/components/Date';
import { BugFragment } from 'src/pages/bug/Bug.generated';
+import BugTitleInput from './BugTitleInput';
import { useSetTitleMutation } from './SetTitle.generated';
/**
@@ -108,10 +103,11 @@ function BugTitleForm({ bug }: Props) {
function editableBugTitle() {
return (
<form className={classes.headerTitle} onSubmit={submitNewTitle}>
- <TextField
+ <BugTitleInput
inputRef={(node) => {
issueTitleInput = node;
}}
+ label="Title"
variant="outlined"
fullWidth
margin="dense"