Skip to content

Commit

Permalink
Merge branch 'googleanalytics-main' into dims_metrics_explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
ikuleshov committed Sep 26, 2024
2 parents 8a6b0e5 + a41443a commit 369e288
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"react-helmet": "^6.1.0",
"react-icons": "^4.8.0",
"react-json-view": "^1.21.3",
"react-loader-spinner": "^5.3.4",
"react-markdown": "^9.0.1",
"react-loader-spinner": "^6.1.6",
"react-redux": "^8.0.5",
"react-syntax-highlighter": "^15.5.0",
"redux": "^4.2.1",
Expand Down
12 changes: 8 additions & 4 deletions src/components/ga4/DimensionsMetricsExplorer/Compatible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,16 @@ const StyledPaper = styled(Paper)((
}
}));

const WithProperty: React.FC<
CompatibleHook & { property: PropertySummary | undefined }
> = ({
type CompatibleProps =
CompatibleHook
& {
property: PropertySummary | undefined,
allMetrics: Metric[],
allDimensions: Dimension[]
}
const WithProperty: React.FC<CompatibleProps> = ({
dimensions,
metrics,
addDimension,
removeMetric,
removeDimension, setDimensions, setMetrics,
property,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ga4/DimensionsMetricsExplorer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const RenderSuccessful: React.FC<Successful & { aps: AccountProperty }> = ({

const resetAllCategoryAccordions = (expanded: boolean) =>
{
const initialCategoryAccordionState = {}
const initialCategoryAccordionState = {} as any
categories.forEach( (x) => initialCategoryAccordionState[x.category]=expanded )
return initialCategoryAccordionState
}
Expand Down

0 comments on commit 369e288

Please sign in to comment.