refactor(ExploreCtasResultsButton): convert to functional component (#17939)

* chore: fix misspelling of button

* Feat: Update ExploreCtasResultsButton to functional component

* Fix pull request

* Fix index.tsx

* Fix prettier issues and actions

* Streamline the onClick so it calls visualize directly

* Update MSP and MDP to arrow functions

* Test destructured props

* Fix props destructuring error

* Simplify with optional chaining on line 94 and clean up buildVizOptions

Co-authored-by: David Woolner <davidwoolner@gmail.com>
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>
This commit is contained in:
Christopher C Fleming
2022-02-08 16:23:45 -05:00
committed by GitHub
parent 7194a01040
commit 51f716f573
2 changed files with 41 additions and 60 deletions

View File

@@ -729,7 +729,6 @@ export default class ResultSet extends React.PureComponent<
table={tempTable}
schema={tempSchema}
dbId={exploreDBId}
database={this.props.database}
actions={this.props.actions}
/>
</ButtonGroup>