Skip to content

Commit

Permalink
feat(plugin-chart-scatter): #3 tries to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihenzler committed Dec 8, 2021
1 parent 36ceea8 commit 5c0328c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 6 additions & 3 deletions plugins/plugin-chart-scatter/src/components/Echart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
import React, { useRef, useEffect, useMemo, forwardRef, useImperativeHandle } from 'react';
import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
import { styled } from '@superset-ui/core';
import { ECharts, init } from 'echarts';
import { EchartsHandler, EchartsProps, EchartsStylesProps } from '../types';
import { EchartsHandler, EchartsProps } from '../types';

const Styles = styled.div<EchartsStylesProps>`
const Styles = styled.div<{
height: number;
width: number;
}>`
height: ${({ height }) => height};
width: ${({ width }) => width};
`;
Expand Down
5 changes: 0 additions & 5 deletions plugins/plugin-chart-scatter/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
*/
import { ECharts, EChartsCoreOption } from 'echarts';

export type EchartsStylesProps = {
height: number;
width: number;
};

export interface EchartsProps {
height: number;
width: number;
Expand Down

0 comments on commit 5c0328c

Please sign in to comment.