-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28a75ef
commit fa8d2dd
Showing
4 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import * as React from "react"; | ||
import ActionCreator from "../actions"; | ||
|
||
export interface QuicksightDashboardStateProps { | ||
} | ||
|
||
export interface QuicksightDashboardDispatchProps { | ||
fetchDashboardUri?: () => Promise<any>; | ||
} | ||
|
||
export interface QuicksightDashboardProps | ||
extends QuicksightDashboardStateProps,QuicksightDashboardDispatchProps {} | ||
|
||
export interface QuicksightDashboardState { | ||
dashboardId: string | ||
} | ||
|
||
|
||
|
||
export class QuicksightDashboard extends React.Component < | ||
QuicksightDashboardProps, | ||
QuicksightDashboardState | ||
>{ | ||
context: { dashboardId: boolean} | ||
|
||
constructor(props) { | ||
super(props); | ||
this.state = {dashboardId: "library"} | ||
} | ||
render(): JSX.Element { | ||
return ( | ||
<div className="quicksight-dashboard"> | ||
<h2>Quicksight Dashboard</h2> | ||
<iframe src="https://www.amazon.com" height="800" width="1000"/> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
function mapStateToProps(state, ownProps) { | ||
return { | ||
events: state.editor.circulationEvents.data || [], | ||
fetchError: state.editor.circulationEvents.fetchError, | ||
isLoaded: state.editor.circulationEvents.isLoaded, | ||
}; | ||
} | ||
|
||
function mapDispatchToProps(dispatch) { | ||
const actions = new ActionCreator(); | ||
return { | ||
fetchDashboardUri: () => dispatch(actions.fetchDashboardUri(dispatch.dashboardId)), | ||
}; | ||
} | ||
|
||
export default QuicksightDashboard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters