From 9dfcc90b8d6c3746accb3e4346810e453d3a0985 Mon Sep 17 00:00:00 2001 From: Leandro Alves Date: Thu, 11 Aug 2022 21:50:59 +0200 Subject: Style query-derived --- client/js/app/src/app/components/icon/icon.jsx | 11 +++++- .../querybuilder/query-derived/query-derived.jsx | 39 +++++++++++++++++++++- 2 files changed, 48 insertions(+), 2 deletions(-) (limited to 'client/js') diff --git a/client/js/app/src/app/components/icon/icon.jsx b/client/js/app/src/app/components/icon/icon.jsx index 12e5489eb2c..f792e7e4302 100644 --- a/client/js/app/src/app/components/icon/icon.jsx +++ b/client/js/app/src/app/components/icon/icon.jsx @@ -6,12 +6,21 @@ import { faArrowsToDot, faChartGantt, faCircleMinus, + faDownload, + faPaste, faPlus, } from '@fortawesome/free-solid-svg-icons'; // TODO: use dynamic import -library.add(faArrowsToDot, faChartGantt, faCircleMinus, faPlus); +library.add( + faArrowsToDot, + faChartGantt, + faCircleMinus, + faPlus, + faPaste, + faDownload +); export function Icon({ name, type = 'solid', color, ...rest }) { const icon = `fa-${type} fa-${name}`; diff --git a/client/js/app/src/app/pages/querybuilder/query-derived/query-derived.jsx b/client/js/app/src/app/pages/querybuilder/query-derived/query-derived.jsx index 00e34a15761..23ec2f23805 100644 --- a/client/js/app/src/app/pages/querybuilder/query-derived/query-derived.jsx +++ b/client/js/app/src/app/pages/querybuilder/query-derived/query-derived.jsx @@ -1,7 +1,44 @@ import React from 'react'; +import { Badge, Group, JsonInput, Stack, Button } from '@mantine/core'; import { useQueryBuilderContext } from 'app/pages/querybuilder/context/query-builder-provider'; +import { Icon } from 'app/components'; export function QueryDerived() { const query = useQueryBuilderContext((ctx) => ctx.query.input); - return ; + return ( + + + Query + + + + + + + + ); } -- cgit v1.2.3