-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from "react"; | ||
|
||
import CustomTable from "@Components/common/CustomTable"; | ||
|
||
import Button from "@material-ui/core/Button"; | ||
import TextareaAutosize from "@material-ui/core/TextareaAutosize"; | ||
import { makeStyles } from "@material-ui/core/styles"; | ||
import TextArea from "../TextArea"; | ||
const Write = () => { | ||
const WRITE_BTN_TEXT = "write"; | ||
|
||
const classes = useStyles(); | ||
|
||
return ( | ||
<> | ||
<CustomTable | ||
ariaLabel="issueTable" | ||
headContents={ | ||
<Button variant="contained" className={classes.button} disableElevation> | ||
{WRITE_BTN_TEXT} | ||
</Button> | ||
} | ||
bodyContents={[{ id: 0, contents: <TextArea /> }]} | ||
className={classes.writeTable} | ||
/> | ||
</> | ||
); | ||
}; | ||
|
||
const useStyles = makeStyles(() => ({ | ||
button: { | ||
backgroundColor: "#fff", | ||
}, | ||
writeTable: { | ||
marginBottom: 40, | ||
"& th": { | ||
padding: "3px 20px", | ||
paddingBottom: 0, | ||
borderBottom: "none", | ||
}, | ||
"& .MuiTableRow-hover": { | ||
pointerEvents: "none", | ||
}, | ||
"& textarea": { | ||
width: "100%", | ||
}, | ||
}, | ||
})); | ||
|
||
export default Write; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters