File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { parse } from "json2csv";
33import { WordData } from "@/app/general/interfaces" ;
44import { styles } from "@/app/components/CSVButton/CSVButton.style" ;
55import CustomButton from "@/app/components/CustomButton" ;
6+ import { DOWNLOAD_RESULTS } from "@/app/general/constants" ;
67
78export default function CSVButton ( { queryWords } : { queryWords : WordData [ ] } ) {
89 const handleDownload = ( ) => {
@@ -15,7 +16,7 @@ export default function CSVButton({ queryWords }: { queryWords: WordData[] }) {
1516 < CustomButton
1617 onClick = { handleDownload }
1718 sx = { styles . button }
18- text = "Download Results"
19+ text = { DOWNLOAD_RESULTS }
1920 />
2021 ) ;
2122}
Original file line number Diff line number Diff line change 1- export const styles = { } ;
1+ export const styles = {
2+ button : { width : "120%" } ,
3+ } ;
Original file line number Diff line number Diff line change 22import { Grid } from "@mui/material" ;
33import CustomButton from "@/app/components/CustomButton" ;
44import SendIcon from "@mui/icons-material/Send" ;
5+ import { styles } from "./ChatButton.style" ;
6+ import { SEND } from "@/app/general/constants" ;
57
68export default function ChatButton ( ) {
79 return (
810 < Grid item xs = { 2 } >
911 < CustomButton
10- sx = { { width : "120%" } }
12+ sx = { styles . button }
1113 endIcon = { < SendIcon /> }
1214 type = "submit"
13- text = "Send"
15+ text = { SEND }
1416 />
1517 </ Grid >
1618 ) ;
Original file line number Diff line number Diff line change 11export const NO_RESULTS_FOUND = "No results found" ;
2-
32export const SAMPLE_SIZE = 5 ;
4-
53export const ATTRIBUTES_BUTTON_TEXT = "Display Attributes" ;
64export const SAMPLE_BUTTON_TEXT = "Display Data Sample" ;
75export const NO_HELP_DESCRIPTION = "No help description available" ;
6+ export const DOWNLOAD_RESULTS = "Download Results" ;
7+ export const SEND = "Send" ;
You can’t perform that action at this time.
0 commit comments