Skip to content

Commit

Permalink
chore: rename shared component
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Jul 1, 2024
1 parent 920abe6 commit 6aa4207
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ CacheableSectionWrapper.propTypes = {
isParentCached: PropTypes.bool,
}

export const AnalyticsPluginWrapper = ({
export const DashboardPluginWrapper = ({
onInstallationStatusChange,
children,
cacheId,
Expand All @@ -60,7 +60,7 @@ export const AnalyticsPluginWrapper = ({
onStateChange: onInstallationStatusChange,
}).then(onInstallationStatusChange)
}, [onInstallationStatusChange])

console.log('Shared P props', props)
return props ? (
<div
style={{
Expand All @@ -80,7 +80,7 @@ export const AnalyticsPluginWrapper = ({
) : null
}

AnalyticsPluginWrapper.propTypes = {
DashboardPluginWrapper.propTypes = {
cacheId: PropTypes.string,
children: PropTypes.node,
isParentCached: PropTypes.bool,
Expand Down
6 changes: 3 additions & 3 deletions src/PluginWrapper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useCallback, useEffect, useState } from 'react'
import { AnalyticsPluginWrapper } from './AnalyticsPluginWrapper.js'
import { Visualization } from './components/Visualization/Visualization.js'
import { DashboardPluginWrapper } from './DashboardPluginWrapper.js'
import { getAdaptedUiSorting } from './modules/current.js'

const PluginWrapper = (props) => {
Expand Down Expand Up @@ -31,11 +31,11 @@ const PluginWrapper = (props) => {
)

return (
<AnalyticsPluginWrapper {...propsFromParent}>
<DashboardPluginWrapper {...propsFromParent}>
{(props) => (
<Visualization {...props} onDataSorted={onDataSorted} />
)}
</AnalyticsPluginWrapper>
</DashboardPluginWrapper>
)
}

Expand Down

0 comments on commit 6aa4207

Please sign in to comment.