From b5477d0e8301686baf970b6018f6e3d9c8c511a6 Mon Sep 17 00:00:00 2001 From: Walter Buczacka Date: Fri, 27 Sep 2024 11:39:41 -0300 Subject: [PATCH 1/2] update styles to use theme provider --- src/components/DrawerMenu.tsx | 3 +-- src/components/Results.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/DrawerMenu.tsx b/src/components/DrawerMenu.tsx index b1a0f74..47d7287 100644 --- a/src/components/DrawerMenu.tsx +++ b/src/components/DrawerMenu.tsx @@ -168,7 +168,7 @@ function DimensionItem({dimension, locale, activeItems, activeCount}) { return (
{getIconForDimensionType(dimension.dimensionType)} @@ -649,7 +649,6 @@ function FilterItem({ // Function to get the appropriate icon for each dimension type const getIconForDimensionType = dimensionType => { - console.log(dimensionType, "dt"); switch (dimensionType) { case "geo": return ; diff --git a/src/components/Results.tsx b/src/components/Results.tsx index 90fdbfa..0ab7e1a 100644 --- a/src/components/Results.tsx +++ b/src/components/Results.tsx @@ -84,17 +84,17 @@ export const useStyles = createStyles(theme => ({ "&:hover": { backgroundColor: theme.colorScheme === "dark" - ? theme.fn.rgba(theme.colors.blue[9], 0.45) - : theme.fn.rgba(theme.colors.blue[4], 0.45) + ? theme.fn.rgba(theme.colors[theme.primaryColor][9], 0.45) + : theme.fn.rgba(theme.colors[theme.primaryColor][4], 0.45) } }, linkActive: { backgroundColor: theme.colorScheme === "dark" - ? theme.fn.rgba(theme.colors.blue[9], 0.45) - : theme.colors.blue[4], - color: theme.colorScheme === "dark" ? theme.colors.blue[1] : theme.white, + ? theme.fn.rgba(theme.colors[theme.primaryColor][9], 0.45) + : theme.colors[theme.primaryColor][4], + color: theme.colorScheme === "dark" ? theme.colors[theme.primaryColor][1] : theme.white, fontWeight: 500 } })); From ec2c429ab4f83bc396268b15efb1bb180f7869ab Mon Sep 17 00:00:00 2001 From: Walter Buczacka Date: Fri, 27 Sep 2024 11:39:57 -0300 Subject: [PATCH 2/2] remove missing log --- src/state/thunks.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/state/thunks.ts b/src/state/thunks.ts index 9eda9c6..83eebc2 100644 --- a/src/state/thunks.ts +++ b/src/state/thunks.ts @@ -48,7 +48,6 @@ export function willDownloadQuery(format: Format): ExplorerThunk { const filename = `${cube.name}_${new Date().toISOString()}`; const queryParams = {...params, pagiLimit: 0, pagiOffset: 0}; - console.log({format}) const query = applyQueryParams(cube.query, queryParams, {previewLimit}).setFormat(format); const dataURL = query.toString("logiclayer").replace(olapClient.datasource.serverUrl, "");