Skip to content

Commit

Permalink
Develop (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
walbuc authored Sep 27, 2024
2 parents 998ca60 + 4ecbf5e commit e1e2583
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/components/DrawerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function DimensionItem({dimension, locale, activeItems, activeCount}) {
return (
<div key={dimension.id}>
<Divider
my="xs"
my="md"
label={
<Group>
{getIconForDimensionType(dimension.dimensionType)}
Expand Down Expand Up @@ -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 <IconWorld size={20} />;
Expand Down
10 changes: 5 additions & 5 deletions src/components/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}));
Expand Down
1 change: 0 additions & 1 deletion src/state/thunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export function willDownloadQuery(format: Format): ExplorerThunk<Promise<FileDes
return olapClient.getCube(params.cube).then(cube => {
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, "");

Expand Down

0 comments on commit e1e2583

Please sign in to comment.