Remove new collection creation for now

This commit is contained in:
Jori Lallo
2016-08-12 15:10:44 +02:00
parent b2d00f3384
commit bd9a55594b
5 changed files with 8 additions and 110 deletions

View File

@@ -9,7 +9,6 @@ import AtlasPreview from 'components/AtlasPreview';
import AtlasPreviewLoading from 'components/AtlasPreviewLoading';
import CenteredContent from 'components/CenteredContent';
import DropdownMenu, { MenuItem, MoreIcon } from 'components/DropdownMenu';
import FullscreenField from 'components/FullscreenField';
// import styles from './Dashboard.scss';
@@ -19,26 +18,16 @@ class Dashboard extends React.Component {
user: React.PropTypes.object.isRequired,
}
state = {
newAtlasVisible: false,
}
componentDidMount = () => {
store.fetchCollections(this.props.user.team.id);
}
onClickNewAtlas = () => {
this.setState({
newAtlasVisible: true,
});
}
render() {
const actions = (
<Flex>
<DropdownMenu label={ <MoreIcon /> } >
<MenuItem onClick={ this.onClickNewAtlas }>
New Atlas
Add collection
</MenuItem>
</DropdownMenu>
</Flex>
@@ -59,8 +48,6 @@ class Dashboard extends React.Component {
</Flex>
</CenteredContent>
</Layout>
{ this.state.newAtlasVisible && <FullscreenField /> }
</Flex>
);
}