📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
rename components
kruzhambus7a0a0645e210
diff --git a/src/pages/Project/View/Panels.tsx b/src/pages/Project/View/Panels.tsxindex 016d3cdca..f63ae3b21 100644--- a/src/pages/Project/View/Panels.tsx+++ b/src/pages/Project/View/Panels.tsx@@ -37,7 +37,7 @@ import Button from 'ui/Button'import Chart from 'ui/Chart'import LiveVisitorsDropdown from './components/LiveVisitorsDropdown'import InteractiveMap from './components/InteractiveMap'-import SankeyChart from './components/SankeyChart'+import UserFlow from './components/UserFlow'import { iconClassName } from './ViewProject.helpers'const ENTRIES_PER_PANEL = 5@@ -774,7 +774,7 @@ const Panel = ({customTabs={customTabs}>{/* @ts-ignore */}- <SankeyChart+ <UserFlowdisableLegendpid={pid || ''}period={period || ''}@@ -799,7 +799,7 @@ const Panel = ({message={(<div className='h-96 dark:text-gray-800'>{/* @ts-ignore */}- <SankeyChart+ <UserFlowpid={pid || ''}period={period || ''}timeBucket={timeBucket || ''}diff --git a/src/pages/Project/View/components/SankeyChart.tsx b/src/pages/Project/View/components/UserFlow.tsxsimilarity index 97%rename from src/pages/Project/View/components/SankeyChart.tsxrename to src/pages/Project/View/components/UserFlow.tsxindex c0312f704..b2b621de9 100644--- a/src/pages/Project/View/components/SankeyChart.tsx+++ b/src/pages/Project/View/components/UserFlow.tsx@@ -37,7 +37,7 @@ const mapDispatchToProps = (dispatch: AppDispatch) => ({},})-const SankeyChart = ({+const UserFlow = ({disableLegend, pid, period, timeBucket, from, to, timezone, userFlowAscendingCache, userFlowDescendingCache, isReversed, setUserFlowAscending, setUserFlowDescending, generateError,}: {disableLegend?: boolean@@ -165,15 +165,15 @@ const SankeyChart = ({)}-SankeyChart.defaultProps = {+UserFlow.defaultProps = {disableLegend: false,isReversed: false,}-const mergeProps = (stateProps: ReturnType<typeof mapStateToProps>, dispatchProps: ReturnType<typeof mapDispatchToProps>, ownProps: ReturnType<typeof SankeyChart>) => ({+const mergeProps = (stateProps: ReturnType<typeof mapStateToProps>, dispatchProps: ReturnType<typeof mapDispatchToProps>, ownProps: ReturnType<typeof UserFlow>) => ({...ownProps,...stateProps,...dispatchProps,})-export default connect(mapStateToProps, mapDispatchToProps, mergeProps)(SankeyChart)+export default connect(mapStateToProps, mapDispatchToProps, mergeProps)(UserFlow)