Skip to content

Commit

Permalink
Merge e7d4961 into 4b060e4
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed Sep 1, 2022
2 parents 4b060e4 + e7d4961 commit 8f6d5e9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin/assets/src/customizer/customize-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
*/
import { STYLES } from './components/google-fonts-control/styles';
import { setConfig } from '../block-editor/utils/get-config';
import { applyRgbValue } from '../../../../theme/assets/src/helper/apply-rgb-value';
import { applyRgbValue } from '../helper/apply-rgb-value';

const getIconFontName = iconStyle => {
return iconStyle === 'filled'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
themeFromSourceColor,
applyTheme,
} from '@material/material-color-utilities';
import { applyRgbValue } from '../../helper/apply-rgb-value';
import { applyRgbValue } from '../helper/apply-rgb-value';

const body = document.body;
export const ICONS = {
Expand Down
3 changes: 3 additions & 0 deletions plugin/assets/src/front-end/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
} from '../common/mdc-components-init';
import { initContactForm } from './contact-form';
import { masonryInit } from './masonry';
import { initDarkModeSwitch } from './dark-mode-switch';

addEventListener( 'DOMContentLoaded', () => {
initButtons();
Expand All @@ -45,3 +46,5 @@ addEventListener( 'DOMContentLoaded', () => {
initTextFields();
}
} );

initDarkModeSwitch();
File renamed without changes.
3 changes: 2 additions & 1 deletion theme/assets/src/customizer/customize-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ import { debounce } from 'lodash';
* Internal dependencies
*/
import { masonryInit } from '../front-end/components/masonry';
import { ICONS as SWITCHER_ICONS } from '../front-end/components/dark-mode-switch';

import { ICONS as SWITCHER_ICONS } from '../../../../plugin/assets/src/front-end/dark-mode-switch';

export const COLOR_MODES = {
default: 'default',
Expand Down
2 changes: 0 additions & 2 deletions theme/assets/src/front-end/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { tabBarInit } from './components/tab-bar';
import { embedsInit } from './components/embeds';
import { widgetsInit } from './components/widgets';
import { masonryInit } from './components/masonry';
import { initDarkModeSwitch } from './components/dark-mode-switch';
import './components/navigation';
import './components/skip-link-focus-fix';

Expand All @@ -46,5 +45,4 @@ document.addEventListener( 'DOMContentLoaded', () => {
embedsInit();
widgetsInit();
masonryInit();
initDarkModeSwitch();
} );

0 comments on commit 8f6d5e9

Please sign in to comment.