Commit for #158

Cláudio created

Change summary

webui/src/pages/list/ListQuery.tsx | 16 +++++++++++++++-
webui/src/pages/new/NewBugPage.tsx |  9 ++++++++-
2 files changed, 23 insertions(+), 2 deletions(-)

Detailed changes

webui/src/pages/list/ListQuery.tsx 🔗

@@ -2,6 +2,7 @@ import { ApolloError } from '@apollo/client';
 import React, { useState, useEffect, useRef } from 'react';
 import { useLocation, useHistory, Link } from 'react-router-dom';
 
+import { Button } from '@material-ui/core';
 import IconButton from '@material-ui/core/IconButton';
 import InputBase from '@material-ui/core/InputBase';
 import Paper from '@material-ui/core/Paper';
@@ -99,6 +100,13 @@ const useStyles = makeStyles<Theme, StylesProps>((theme) => ({
       padding: theme.spacing(2, 3),
     },
   },
+  gitbugButton: {
+    backgroundColor: '#2ea44fd9',
+    color: '#fff',
+    '&:hover': {
+      backgroundColor: '#2ea44f',
+    },
+  },
 }));
 
 function editParams(
@@ -293,7 +301,13 @@ function ListQuery() {
             </button>
           </form>
         </div>
-        <GBButton to="/new" text="New Issue" />
+        <Button
+          className={classes.gitbugButton}
+          variant="contained"
+          href="/new"
+        >
+          New issue
+        </Button>
       </header>
       <FilterToolbar query={query} queryLocation={queryLocation} />
       {content}

webui/src/pages/new/NewBugPage.tsx 🔗

@@ -42,6 +42,13 @@ const useStyles = makeStyles((theme: Theme) => ({
     display: 'flex',
     justifyContent: 'flex-end',
   },
+  gitbugButton: {
+    backgroundColor: '#2ea44fd9',
+    color: '#fff',
+    '&:hover': {
+      backgroundColor: '#2ea44f',
+    },
+  },
 }));
 
 /**
@@ -98,8 +105,8 @@ function NewBugPage() {
         />
         <div className={classes.actions}>
           <Button
+            className={classes.gitbugButton}
             variant="contained"
-            color="primary"
             type="submit"
             disabled={isFormValid() ? false : true}
           >