This repository has been archived by the owner on Mar 7, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from CatalystCode/remove-unused-facts-code
Remove unused facts code
- Loading branch information
Showing
6 changed files
with
14 additions
and
312 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,24 @@ | ||
import React from 'react'; | ||
import createReactClass from 'create-react-class'; | ||
import Fluxxor from 'fluxxor'; | ||
import { FactsList } from '../components/Facts/FactsList'; | ||
import '../styles/Facts/Facts.css'; | ||
|
||
export class FactsPage extends React.Component { | ||
const FluxMixin = Fluxxor.FluxMixin(React); | ||
const StoreWatchMixin = Fluxxor.StoreWatchMixin("DataStore"); | ||
|
||
export const FactsPage = createReactClass({ | ||
mixins: [FluxMixin, StoreWatchMixin], | ||
|
||
getStateFromFlux() { | ||
return this.getFlux().store("DataStore").getState(); | ||
}, | ||
|
||
render() { | ||
return ( | ||
<div className="report"> | ||
<FactsList {...this.props.params} /> | ||
<FactsList {...this.getStateFromFlux()} /> | ||
</div> | ||
); | ||
} | ||
} | ||
}); |
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 was deleted.
Oops, something went wrong.