Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use classNames #1167

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/app/components/app-nav/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useEffect, useState } from '@wordpress/element';
import apiFetch from '@wordpress/api-fetch';
import { useViewportMatch } from '@wordpress/compose';
import { addQueryArgs } from '@wordpress/url';
import classnames from 'classnames';
import { filter } from 'lodash';
import { Modal, SidebarNavigation } from '@newfold/ui-component-library';
import { default as NewfoldNotifications } from '@modules/wp-module-notifications/assets/js/components/notifications/';
Expand Down Expand Up @@ -170,7 +169,6 @@ export const SideNav = () => {
methods={ {
apiFetch,
addQueryArgs,
classnames,
filter,
useState,
useEffect,
Expand Down
4 changes: 1 addition & 3 deletions src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import AppStore, { AppStoreProvider } from './data/store';
import { useLocation, HashRouter as Router } from 'react-router-dom';
import { NewfoldRuntime } from '@newfold-labs/wp-module-runtime';
import { SnackbarList, Spinner } from '@wordpress/components';
import classnames from 'classnames';
import AppRoutes from './data/routes';
import ErrorCard from './components/errorCard';
import { useDispatch, useSelect } from '@wordpress/data';
Expand Down Expand Up @@ -56,7 +55,7 @@ const AppBody = ( props ) => {
return (
<main
id="wppbh-app-rendered"
className={ classnames(
className={ classNames(
'wpadmin-brand-bluehost',
`wppbh-wp-${ NewfoldRuntime.wpVersion }`,
`wppbh-page-${ kebabCase( location.pathname ) }`,
Expand All @@ -72,7 +71,6 @@ const AppBody = ( props ) => {
methods={ {
apiFetch,
addQueryArgs,
classnames,
filter,
useState,
useEffect,
Expand Down
1 change: 0 additions & 1 deletion src/app/pages/admin/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classNames from 'classnames';
import HelpCenterSettings from '../settings/helpCenterSettings';
import WonderBlocksSettings from '../settings/wonderBlocksSettings';
import StagingFeatureSettings from '../settings/stagingFeatureSettings';
Expand Down
1 change: 0 additions & 1 deletion src/app/pages/home/accountCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
getPlatformBaseUrl,
isJarvis,
} from '../../util/helpers';
import classNames from 'classnames';

const base = [
{
Expand Down
3 changes: 1 addition & 2 deletions src/app/pages/marketplace/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import apiFetch from '@wordpress/api-fetch';
import { useState, useEffect } from '@wordpress/element';
import { useLocation, useMatch, useNavigate } from 'react-router-dom';
import classnames from 'classnames';
import { Container, Page } from '@newfold/ui-component-library';
import { NewfoldRuntime } from '@newfold-labs/wp-module-runtime';
// component sourced from marketplace module
Expand Down Expand Up @@ -44,7 +43,7 @@ const MarketplacePage = () => {
// methods to pass to module
const moduleMethods = {
apiFetch,
classnames,
classNames,
useState,
useEffect,
useLocation,
Expand Down
2 changes: 0 additions & 2 deletions src/app/pages/performance/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import apiFetch from '@wordpress/api-fetch';
import { useState, useEffect, useContext, Fragment } from '@wordpress/element';
import { useUpdateEffect } from 'react-use';
import classnames from 'classnames';
import { Container, Page } from '@newfold/ui-component-library';
import { NewfoldRuntime } from '@newfold-labs/wp-module-runtime';
import AppStore from '../../data/store';
Expand All @@ -20,7 +19,6 @@ const PerformancePage = () => {
// methods to pass to module
const moduleMethods = {
apiFetch,
classnames,
useState,
useEffect,
useContext,
Expand Down
1 change: 0 additions & 1 deletion src/app/pages/settings/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classNames from 'classnames';
import { Container, Page } from '@newfold/ui-component-library';
import useContainerBlockIsTarget from 'App/util/hooks/useContainerBlockTarget';
import ComingSoon from './comingSoon';
Expand Down
3 changes: 1 addition & 2 deletions src/app/pages/staging/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import './stylesheet.scss';
import { useState, useEffect } from '@wordpress/element';
import apiFetch from '@wordpress/api-fetch';
import classnames from 'classnames';
import { NewfoldRuntime } from '@newfold-labs/wp-module-runtime';
import { useNotification } from 'App/components/notifications';
// component sourced from staging module
Expand All @@ -18,7 +17,7 @@ const Staging = () => {
// methods to pass to module
const moduleMethods = {
apiFetch,
classnames,
classNames,
useState,
useEffect,
NewfoldRuntime,
Expand Down
Loading