@@ -9,12 +9,10 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
99import ImmutablePureComponent from 'react-immutable-pure-component' ;
1010import { me , invitesEnabled , version , profile_directory , repository , source_url } from '../../initial_state' ;
1111import { fetchFollowRequests } from 'mastodon/actions/accounts' ;
12- import { changeSetting } from 'mastodon/actions/settings' ;
1312import { List as ImmutableList } from 'immutable' ;
1413import { Link } from 'react-router-dom' ;
1514import NavigationBar from '../compose/components/navigation_bar' ;
1615import Icon from 'mastodon/components/icon' ;
17- import Toggle from 'react-toggle' ;
1816
1917const messages = defineMessages ( {
2018 home_timeline : { id : 'tabs_bar.home' , defaultMessage : 'Home' } ,
@@ -41,12 +39,10 @@ const messages = defineMessages({
4139const mapStateToProps = state => ( {
4240 myAccount : state . getIn ( [ 'accounts' , me ] ) ,
4341 unreadFollowRequests : state . getIn ( [ 'user_lists' , 'follow_requests' , 'items' ] , ImmutableList ( ) ) . size ,
44- forceSingleColumn : state . getIn ( [ 'settings' , 'forceSingleColumn' ] , false ) ,
4542} ) ;
4643
4744const mapDispatchToProps = dispatch => ( {
4845 fetchFollowRequests : ( ) => dispatch ( fetchFollowRequests ( ) ) ,
49- changeForceSingleColumn : checked => dispatch ( changeSetting ( [ 'forceSingleColumn' ] , checked ) ) ,
5046} ) ;
5147
5248const badgeDisplay = ( number , limit ) => {
@@ -71,8 +67,6 @@ class GettingStarted extends ImmutablePureComponent {
7167 fetchFollowRequests : PropTypes . func . isRequired ,
7268 unreadFollowRequests : PropTypes . number ,
7369 unreadNotifications : PropTypes . number ,
74- forceSingleColumn : PropTypes . bool ,
75- changeForceSingleColumn : PropTypes . func . isRequired ,
7670 } ;
7771
7872 componentDidMount ( ) {
@@ -83,12 +77,8 @@ class GettingStarted extends ImmutablePureComponent {
8377 }
8478 }
8579
86- handleForceSingleColumnChange = ( { target } ) => {
87- this . props . changeForceSingleColumn ( target . checked ) ;
88- }
89-
9080 render ( ) {
91- const { intl, myAccount, multiColumn, unreadFollowRequests, forceSingleColumn } = this . props ;
81+ const { intl, myAccount, multiColumn, unreadFollowRequests } = this . props ;
9282
9383 const navItems = [ ] ;
9484 let i = 1 ;
@@ -187,11 +177,6 @@ class GettingStarted extends ImmutablePureComponent {
187177 </ p >
188178 </ div >
189179 </ div >
190-
191- < label className = 'navigational-toggle' >
192- < FormattedMessage id = 'getting_started.use_simple_layout' defaultMessage = 'Use simple layout' />
193- < Toggle checked = { forceSingleColumn } onChange = { this . handleForceSingleColumnChange } />
194- </ label >
195180 </ Column >
196181 ) ;
197182 }
0 commit comments