Skip to content
Snippets Groups Projects
Commit 2d3a2a53 authored by Atte Keinänen's avatar Atte Keinänen
Browse files

Flow makes my life unsatisfactory

parent 9a0d66eb
No related branches found
No related tags found
No related merge requests found
[ignore]
.*/node_modules/react/node_modules/.*
.*/node_modules/postcss-import/node_modules/.*
.*/node_modules/react-resizable/.*
.*/node_modules/documentation/.*
.*/node_modules/.*/\(lib\|test\).*\.json$
......
......@@ -6,6 +6,7 @@ import ReactDOM from "react-dom";
import "./NativeQueryEditor.css";
// $FlowFixMe react-resizable causes Flow errors
import { ResizableBox } from 'react-resizable';
import 'ace/ace';
......
/* @flow */
import React, { Component } from 'react'
import { connect } from 'react-redux'
import title from 'metabase/hoc/Title'
......@@ -34,16 +33,17 @@ type Props = {
fetchXray: () => void,
initialize: () => {},
constituents: [],
xray: {
features: {
table: Table,
segment: Segment,
model: Segment,
},
params: {
segmentId: number,
cost: string,
},
isLoading: boolean,
error: {}
error: {},
push: (string) => void
}
const mapStateToProps = state => ({
......@@ -89,7 +89,7 @@ class SegmentXRay extends Component {
}
}
navigateToComparison(comparable) {
navigateToComparison(comparable: any) {
const { features, push } = this.props
const currentModelType = features.model["type-tag"]
......
/* @flow */
import React, { Component } from 'react'
import { connect } from 'react-redux'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment