Skip to content

Commit

Permalink
chore(dashboardeditor): remove unused props
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Stone committed Nov 3, 2020
1 parent bfab7de commit da84ca4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/components/Dashboard/DashboardGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ const DashboardGrid = ({
layouts,
onLayoutChange,
onBreakpointChange,
className,
onCardSizeChange,
onResizeStop: onResizeStopCallback,
...others
Expand Down Expand Up @@ -326,7 +325,7 @@ const DashboardGrid = ({
};

return (
<div className={className} style={{ flex: 1 }}>
<div style={{ flex: 1 }}>
<StyledGridLayout
layouts={generatedLayouts}
compactType="vertical"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/DashboardGrid.story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ DashboardResizableCard.story = {
size={currentSize}></Card>
</DashboardGrid>
</FullWidthWrapper>
</>
</Fragment>
);
~~~
`,
Expand Down
8 changes: 4 additions & 4 deletions src/constants/LayoutConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ export const ALLOWED_CARD_SIZES_PER_TYPE = {
};

export const DASHBOARD_EDITOR_CARD_TYPES = {
VALUE: 'VALUE',
TIMESERIES: 'TIMESERIES',
IMAGE: 'IMAGE',
TABLE: 'TABLE',
VALUE: CARD_TYPES.VALUE,
TIMESERIES: CARD_TYPES.TIMESERIES,
IMAGE: CARD_TYPES.IMAGE,
TABLE: CARD_TYPES.TABLE,
SIMPLE_BAR: 'SIMPLE_BAR',
GROUPED_BAR: 'GROUPED_BAR',
STACKED_BAR: 'STACKED_BAR',
Expand Down

0 comments on commit da84ca4

Please sign in to comment.