Skip to content

Commit b652448

Browse files
authored
TT-7501 no auto mobile for bold (#406)
1 parent 750a56a commit b652448

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

src/renderer/src/components/Team/TeamDialog.tsx

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@ import {
4141
} from '../../crud';
4242
import PublishExpansion from '../PublishExpansion';
4343
import { 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';
5145
import { useOrbitData } from '../../hoc/useOrbitData';
5246
import { RecordIdentity } from '@orbit/records';
5347
import 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

Comments
 (0)