fix: update

This commit is contained in:
Adam Stankiewicz
2023-05-29 16:22:36 -04:00
parent 7b3763a7a1
commit fdddf6efa7
2 changed files with 5 additions and 14 deletions

View File

@@ -6,7 +6,6 @@ import { sendTrackingLogEvent } from '@edx/frontend-platform/analytics';
import { ensureConfig, getConfig } from '@edx/frontend-platform';
import {
AppContext,
PARAGON_THEME_VARIANT_LIGHT,
paragonThemeActions,
} from '@edx/frontend-platform/react';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
@@ -99,16 +98,8 @@ class ProfilePage extends React.Component {
}
handleToggleParagonThemeVariant() {
const getNextThemeVariant = () => {
// if (this.context.paragonTheme.state.themeVariant === PARAGON_THEME_VARIANT_LIGHT) {
// return PARAGON_THEME_VARIANT_DARK;
// }
return PARAGON_THEME_VARIANT_LIGHT;
};
const nextThemeVariant = getNextThemeVariant();
this.context.paragonTheme.dispatch(
paragonThemeActions.setParagonThemeVariant(nextThemeVariant),
);
const nextThemeVariant = this.context.paragonTheme.state.themeVariant === 'light' ? 'invalid' : 'light';
this.context.paragonTheme.setThemeVariant(nextThemeVariant);
}
isYOBDisabled() {