fix: update
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user