Skip to content

Commit

Permalink
Remove onboarding modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Jan 17, 2018
1 parent ea75ae2 commit 5ba8b3a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 595 deletions.
14 changes: 0 additions & 14 deletions app/javascript/mastodon/actions/onboarding.js

This file was deleted.

3 changes: 0 additions & 3 deletions app/javascript/mastodon/containers/mastodon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { showOnboardingOnce } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'react-router-scroll-4';
import UI from '../features/ui';
Expand Down Expand Up @@ -40,8 +39,6 @@ export default class Mastodon extends React.PureComponent {
const handlerUrl = window.location.protocol + '//' + window.location.host + '/intent?uri=%s';
window.setTimeout(() => navigator.registerProtocolHandler('web+mastodon', handlerUrl, 'Mastodon'), 5 * 60 * 1000);
}

store.dispatch(showOnboardingOnce());
}

componentWillUnmount () {
Expand Down
2 changes: 0 additions & 2 deletions app/javascript/mastodon/features/ui/components/modal_root.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import VideoModal from './video_modal';
import BoostModal from './boost_modal';
import ConfirmationModal from './confirmation_modal';
import {
OnboardingModal,
MuteModal,
ReportModal,
EmbedModal,
Expand All @@ -18,7 +17,6 @@ import {

const MODAL_COMPONENTS = {
'MEDIA': () => Promise.resolve({ default: MediaModal }),
'ONBOARDING': OnboardingModal,
'VIDEO': () => Promise.resolve({ default: VideoModal }),
'BOOST': () => Promise.resolve({ default: BoostModal }),
'CONFIRM': () => Promise.resolve({ default: ConfirmationModal }),
Expand Down
318 changes: 0 additions & 318 deletions app/javascript/mastodon/features/ui/components/onboarding_modal.js

This file was deleted.

4 changes: 0 additions & 4 deletions app/javascript/mastodon/features/ui/util/async-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ export function Mutes () {
return import(/* webpackChunkName: "features/mutes" */'../../mutes');
}

export function OnboardingModal () {
return import(/* webpackChunkName: "modals/onboarding_modal" */'../components/onboarding_modal');
}

export function MuteModal () {
return import(/* webpackChunkName: "modals/mute_modal" */'../components/mute_modal');
}
Expand Down
Loading

0 comments on commit 5ba8b3a

Please sign in to comment.