@@ -41,13 +41,7 @@ import {
4141} from '../../crud' ;
4242import PublishExpansion from '../PublishExpansion' ;
4343import { UnsavedContext } from '../../context/UnsavedContext' ;
44- import {
45- useUserCanPublish ,
46- useJsonParams ,
47- waitForIt ,
48- LocalKey ,
49- localUserKey ,
50- } from '../../utils' ;
44+ import { useUserCanPublish , useJsonParams , waitForIt } from '../../utils' ;
5145import { useOrbitData } from '../../hoc/useOrbitData' ;
5246import { RecordIdentity } from '@orbit/records' ;
5347import TeamSettings from './TeamSettings' ;
@@ -104,7 +98,6 @@ export function TeamDialog(props: IProps) {
10498 const { personalTeam } = ctx . state ;
10599 const t : ICardsStrings = useSelector ( cardsSelector , shallowEqual ) ;
106100 const [ memory ] = useGlobal ( 'memory' ) ;
107- const [ , setMobileView ] = useGlobal ( 'mobileView' ) ;
108101 const [ process , setProcess ] = useState < string > ( ) ;
109102 const [ processOptions , setProcessOptions ] = useState < OptionType [ ] > ( [ ] ) ;
110103 const savingRef = useRef ( false ) ;
@@ -232,20 +225,6 @@ export function TeamDialog(props: IProps) {
232225 resetProjectPermissions : resetProjects ,
233226 } ,
234227 async ( ) => {
235- if ( process === 'bold' ) {
236- setTimeout ( ( ) => {
237- // Show the newly created project in the mobile project view.
238- // teamCreate already selected the new team (LocalKey.team) and its
239- // default project, so we only need to switch on the mobile view
240- // (UserMenu logic) and navigate to the team screen (SwitchTeams logic).
241- setMobileView ( true ) ;
242- localStorage . setItem (
243- localUserKey ( LocalKey . mobileView ) ,
244- String ( true )
245- ) ;
246- setView ( '/team' ) ;
247- } , 500 ) ;
248- }
249228 reset ( ) ;
250229 }
251230 ) ;
0 commit comments