diff --git a/src/explorer/App.js b/src/explorer/App.js index 5d3aaf6..e06502b 100644 --- a/src/explorer/App.js +++ b/src/explorer/App.js @@ -1,19 +1,12 @@ // @flow import React, {Component} from "react"; -import data from "./data.json"; import "./App.css"; -import {FileExplorer} from "./FileExplorer.js"; -import {UserExplorer} from "./UserExplorer.js"; +import {GraphExplorer} from "./GraphExplorer"; -type AppState = {selectedPath: string, selectedUser: ?string}; -class App extends Component<{}, AppState> { - constructor() { - super(); - this.state = { - selectedPath: "", - selectedUser: null, - }; - } +type Props = {}; +type State = {}; + +class App extends Component { render() { return (
@@ -28,19 +21,8 @@ class App extends Component<{}, AppState> { >

SourceCred Explorer

- this.setState({selectedPath: x})} - selectedPath={this.state.selectedPath} - data={data} - /> - this.setState({selectedUser: x})} - data={data} - /> + +
); } diff --git a/src/explorer/GraphExplorer.js b/src/explorer/GraphExplorer.js new file mode 100644 index 0000000..39020e5 --- /dev/null +++ b/src/explorer/GraphExplorer.js @@ -0,0 +1,17 @@ +// @flow +// A frontend for visualizing Contribution Graphs + +import React, {Component} from "react"; + +type Props = {}; +type State = {}; + +export class GraphExplorer extends Component { + render() { + return ( +
+

Graph Explorer

+
+ ); + } +}