Skip to content

Commit

Permalink
Merge pull request #245 from openedx/aakbar/PROD-2761
Browse files Browse the repository at this point in the history
feat: remove old UserPage, related older actions and version toggle
  • Loading branch information
Ali-D-Akbar authored Apr 5, 2022
2 parents 6f24847 + b3fb55a commit 01583af
Show file tree
Hide file tree
Showing 21 changed files with 61 additions and 1,114 deletions.
2 changes: 1 addition & 1 deletion src/SupportToolsTab/SupportToolsTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
PROGRAM_ENROLLMENT_TAB,
TAB_PATH_MAP,
} from './constants';
import UserPage from '../users/v2/UserPage';
import UserPage from '../users/UserPage';
import FeatureBasedEnrollmentIndexPage from '../FeatureBasedEnrollments/FeatureBasedEnrollmentIndexPage';
import ProgramEnrollmentsIndexPage from '../ProgramEnrollments/ProgramEnrollmentsIndexPage';

Expand Down
260 changes: 0 additions & 260 deletions src/Table.jsx

This file was deleted.

4 changes: 1 addition & 3 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ import { Switch, Route } from 'react-router-dom';
import SupportHomePage from './supportHome/SupportHomePage';
import Header from './supportHeader';
import appMessages from './i18n';
import UserPage from './users/UserPage';
import SupportToolsTab from './SupportToolsTab/SupportToolsTab';
import UserPageV2 from './users/v2/UserPage';
import UserPageV2 from './users/UserPage';
import FBEIndexPage from './FeatureBasedEnrollments/FeatureBasedEnrollmentIndexPage';
import UserMessagesProvider from './userMessages/UserMessagesProvider';
import ProgramEnrollmentsIndexPage from './ProgramEnrollments/ProgramEnrollmentsIndexPage';
Expand All @@ -38,7 +37,6 @@ subscribe(APP_READY, () => {
<Header />
<Switch>
<Route exact path="/" component={SupportHomePage} />
<Route path="/users" component={UserPage} />
<Route path="/v2" component={SupportToolsTab} />
<Route path="/v2/learner_information" component={UserPageV2} />
<Route path="/v2/feature_based_enrollments" component={FBEIndexPage} />
Expand Down
2 changes: 0 additions & 2 deletions src/supportHeader/DesktopHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { LinkedLogo, Logo } from './Logo';

// Assets
import { CaretIcon } from './Icons';
import ToggleVersion from './ToggleVersion';

export default class DesktopHeader extends React.Component {
renderMainMenu() {
Expand Down Expand Up @@ -53,7 +52,6 @@ export default class DesktopHeader extends React.Component {

return (
<>
<ToggleVersion />
<Dropdown>
<Dropdown.Toggle as={AvatarButton} src={avatar}>
{username}
Expand Down
2 changes: 0 additions & 2 deletions src/supportHeader/MobileHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { LinkedLogo, Logo } from './Logo';

// Assets
import { MenuIcon } from './Icons';
import ToggleVersion from './ToggleVersion';

export default class MobileHeader extends React.Component {
renderMainMenu() {
Expand Down Expand Up @@ -55,7 +54,6 @@ export default class MobileHeader extends React.Component {

return (
<>
<ToggleVersion />
<Dropdown>
<Dropdown.Toggle showLabel={false} size="md" as={AvatarButton} src={avatar}>
{username}
Expand Down
41 changes: 0 additions & 41 deletions src/supportHeader/ToggleVersion.jsx

This file was deleted.

Loading

0 comments on commit 01583af

Please sign in to comment.