aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/pages/list
diff options
context:
space:
mode:
authorCláudio <claudio.engdist@gmail.com>2021-01-26 14:54:58 -0300
committerCláudio <claudio.engdist@gmail.com>2021-01-26 14:54:58 -0300
commitc009bea662d9fc875c8e7cb266cebbfc2985f226 (patch)
treec4f435f28317f3d79f1be569eabfab19cb0e1990 /webui/src/pages/list
parent343ef1455edca4e9b807700885c53cc6c43d19d9 (diff)
downloadgit-bug-c009bea662d9fc875c8e7cb266cebbfc2985f226.tar.gz
Partial commit for #158
- Component GBButton created - New issue form partially created (only title) - Refactoring for GBButon usage Next steps - Practice GraphQL calls - Finish New issue form (add first comment and submit)
Diffstat (limited to 'webui/src/pages/list')
-rw-r--r--webui/src/pages/list/ListQuery.css20
-rw-r--r--webui/src/pages/list/ListQuery.tsx6
2 files changed, 3 insertions, 23 deletions
diff --git a/webui/src/pages/list/ListQuery.css b/webui/src/pages/list/ListQuery.css
index 36d94289..4f7abaf3 100644
--- a/webui/src/pages/list/ListQuery.css
+++ b/webui/src/pages/list/ListQuery.css
@@ -14,24 +14,4 @@ label {
flex-direction: row;
align-items: flex-start;
justify-content: left;
-}
-
-.bt-new-issue {
- background-color: #2ea44fd9;
- border: 1px solid;
- border-color: #1b1f2326;
- border-radius: 6px;
- padding: 6px 12px;
-
- font-size: 14px;
- color: #ffffff;
- line-height: 20px;
- text-decoration: none;
-
- transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
-}
-
-.bt-new-issue:hover {
- background-color: #2ea44f;
- border-color: #1b1f2326;
} \ No newline at end of file
diff --git a/webui/src/pages/list/ListQuery.tsx b/webui/src/pages/list/ListQuery.tsx
index b135827f..099adcd8 100644
--- a/webui/src/pages/list/ListQuery.tsx
+++ b/webui/src/pages/list/ListQuery.tsx
@@ -11,6 +11,8 @@ import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft';
import KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight';
import Skeleton from '@material-ui/lab/Skeleton';
+import GBButton from 'src/components/Button/GBButton';
+
import FilterToolbar from './FilterToolbar';
import List from './List';
import { useListBugsQuery } from './ListQuery.generated';
@@ -291,9 +293,7 @@ function ListQuery() {
</button>
</form>
</div>
- <Link to="/newIssue" className="bt-new-issue">
- New Issue
- </Link>
+ <GBButton to="/new" text="New Issue" />
</header>
<FilterToolbar query={query} queryLocation={queryLocation} />
{content}