Skip to content

Commit

Permalink
fix: typo, rename Buttton to Button
Browse files Browse the repository at this point in the history
  • Loading branch information
icatalina committed May 29, 2024
1 parent 67e97b1 commit d92c16c
Show file tree
Hide file tree
Showing 34 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion apps/storefront/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import B3RenderRouter from '@/components/layout/B3RenderRouter';
import showPageMask from '@/components/loading/B3showPageMask';
import { useB3AppOpen, useSetOpen } from '@/hooks';
import useDomHooks from '@/hooks/dom/useDomHooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { GlobaledContext } from '@/shared/global';
import { gotoAllowedAppPage } from '@/shared/routes';
import { setChannelStoreType } from '@/shared/service/b2b';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/components/HeadlessController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { HeadlessRoutes } from '@/constants';
import { addProductFromPage as addProductFromPageToShoppingList } from '@/hooks/dom/useOpenPDP';
import { addProductsFromCartToQuote, addProductsToDraftQuote } from '@/hooks/dom/utils';
import { addProductsToShoppingList } from '@/pages/pdp/PDP';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { GlobaledContext } from '@/shared/global';
import { superAdminCompanies } from '@/shared/service/b2b';
import B3Request from '@/shared/service/request/b3Fetch';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/components/filter/B3FilterMore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import FilterListIcon from '@mui/icons-material/FilterList';
import { Badge, Box, Button, IconButton, useTheme } from '@mui/material';

import { useMobile } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';

import B3CustomForm from '../B3CustomForm';
import B3Dialog from '../B3Dialog';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/components/layout/B3Mainheader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Box, Button, Typography } from '@mui/material';

import { CART_URL } from '@/constants';
import useMobile from '@/hooks/useMobile';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { useAppSelector } from '@/store';
import b3TriggerCartNumber from '@/utils/b3TriggerCartNumber';

Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/components/layout/B3MobileLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Close, Dehaze, ShoppingBagOutlined } from '@mui/icons-material';
import { Badge, Box } from '@mui/material';

import { CART_URL } from '@/constants';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { useAppSelector } from '@/store';

import CompanyCredit from '../CompanyCredit';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@/constants';
import { useGetButtonText } from '@/hooks';
import useMobile from '@/hooks/useMobile';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { useAppSelector } from '@/store';
import { OpenPageState } from '@/types/hooks';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { useGetButtonText } from '@/hooks';
import useMobile from '@/hooks/useMobile';
import useStorageState from '@/hooks/useStorageState';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { superAdminEndMasquerade } from '@/shared/service/b2b';
import { clearMasqueradeCompany, useAppDispatch, useAppSelector } from '@/store';
import { OpenPageState } from '@/types/hooks';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/components/table/B3Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import IconButton from '@mui/material/IconButton';
import TableSortLabel from '@mui/material/TableSortLabel';

import { useMobile } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';

import { b3HexToRgb, getContrastColor } from '../outSideComponents/utils/b3CustomStyles';

Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/hooks/dom/useCartToQuote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
splitCustomCssValue,
} from '@/components/outSideComponents/utils/b3CustomStyles';
import { CART_URL, CHECKOUT_URL } from '@/constants';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { useAppSelector } from '@/store';
import { OpenPageState } from '@/types/hooks';
import { B3SStorage, globalSnackbar } from '@/utils';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/hooks/dom/useMyQuote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
splitCustomCssValue,
} from '@/components/outSideComponents/utils/b3CustomStyles';
import { ADD_TO_QUOTE_DEFAULT_VALUE, TRANSLATION_ADD_TO_QUOTE_VARIABLE } from '@/constants';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import {
resetDraftQuoteInfo,
resetDraftQuoteList,
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/hooks/dom/useOpenPDP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ADD_TO_SHOPPING_LIST_DEFUALT_VALUE,
TRANSLATION_SHOPPING_LIST_BTN_VARAIBLE,
} from '@/constants';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { GlobaledContext } from '@/shared/global';
import { isB2BUserSelector, setGlabolCommonState, useAppDispatch, useAppSelector } from '@/store';
import { OpenPageState } from '@/types/hooks';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/hooks/dom/useRegisteredbctob2b.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Dispatch, SetStateAction, useContext, useEffect } from 'react';
import globalB3 from '@b3/global-b3';
import { useB3Lang } from '@b3/lang';

import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { GlobaledContext } from '@/shared/global';
import { isB2BUserSelector, useAppSelector } from '@/store';
import { OpenPageState } from '@/types/hooks';
Expand Down
6 changes: 3 additions & 3 deletions apps/storefront/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ declare interface Window {
getCurrent: () => {
productList: import('@/components').FormattedQuoteItem[];
};
getButtonInfo: () => import('@/shared/customStyleButtton/context/config').BtnProperties;
getButtonInfoAddAllFromCartToQuote: () => import('@/shared/customStyleButtton/context/config').BtnProperties;
getButtonInfo: () => import('@/shared/customStyleButton/context/config').BtnProperties;
getButtonInfoAddAllFromCartToQuote: () => import('@/shared/customStyleButton/context/config').BtnProperties;
};
user: {
getProfile: () => Record<string, string | number>;
Expand All @@ -71,7 +71,7 @@ declare interface Window {
name: string,
description: string,
) => Promise<{ id: number; name: string; description: string }>;
getButtonInfo: () => import('@/shared/customStyleButtton/context/config').BtnProperties;
getButtonInfo: () => import('@/shared/customStyleButton/context/config').BtnProperties;
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/lang.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useContext, useState } from 'react';
import { LangProvider } from '@b3/lang';

import { CustomStyleContext } from './shared/customStyleButtton';
import { CustomStyleContext } from './shared/customStyleButton';

export function LangWrapper({ children }: { children: React.ReactNode }) {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { b3HexToRgb, getContrastColor } from '@/components/outSideComponents/uti
import B3Sping from '@/components/spin/B3Sping';
import { useMobile } from '@/hooks';
import useStorageState from '@/hooks/useStorageState';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import {
getB2BAccountFormFields,
getB2BAccountSettings,
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/pages/login/ForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { B3Card, B3CustomForm } from '@/components';
import CustomButton from '@/components/button/CustomButton';
import B3Sping from '@/components/spin/B3Sping';
import { useMobile } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { GlobaledContext } from '@/shared/global';
import { OpenPageState } from '@/types/hooks';
import b2bLogger from '@/utils/b3Logger';
Expand Down
4 changes: 2 additions & 2 deletions apps/storefront/src/pages/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { Alert, Box, ImageListItem } from '@mui/material';
import { B3Card } from '@/components';
import B3Sping from '@/components/spin/B3Sping';
import { useMobile } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { defaultCreateAccountPanel } from '@/shared/customStyleButtton/context/config';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { defaultCreateAccountPanel } from '@/shared/customStyleButton/context/config';
import { GlobaledContext } from '@/shared/global';
import { getBCForcePasswordReset, superAdminEndMasquerade } from '@/shared/service/b2b';
import { b2bLogin, bcLogoutLogin, customerLoginAPI } from '@/shared/service/bc';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/pages/orderDetail/OrderDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Box, Grid, Stack, Typography } from '@mui/material';
import { b3HexToRgb, getContrastColor } from '@/components/outSideComponents/utils/b3CustomStyles';
import B3Sping from '@/components/spin/B3Sping';
import { useMobile } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { GlobaledContext } from '@/shared/global';
import {
getB2BAddressConfig,
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/pages/quote/QuoteDraft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import CustomButton from '@/components/button/CustomButton';
import { getContrastColor } from '@/components/outSideComponents/utils/b3CustomStyles';
import B3Sping from '@/components/spin/B3Sping';
import { useMobile, useSetCountry } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { GlobaledContext } from '@/shared/global';
import {
createBCQuote,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Box, Grid, styled, Typography, useTheme } from '@mui/material';
import CustomButton from '@/components/button/CustomButton';
import { b3HexToRgb, getContrastColor } from '@/components/outSideComponents/utils/b3CustomStyles';
import { useMobile } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { displayFormat } from '@/utils';

import QuoteStatus from './QuoteStatus';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/pages/registered/RegisterComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Alert, Box } from '@mui/material';

import { B3CustomForm } from '@/components';
import { getContrastColor } from '@/components/outSideComponents/utils/b3CustomStyles';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { GlobaledContext } from '@/shared/global';
import {
createB2BCompanyUser,
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/pages/registered/Registered.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Box, ImageListItem } from '@mui/material';
import { B3Card } from '@/components';
import B3Sping from '@/components/spin/B3Sping';
import { useMobile, useScrollBar } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { GlobaledContext } from '@/shared/global';
import { getB2BAccountFormFields, getB2BCountries } from '@/shared/service/b2b';
import { bcLogin } from '@/shared/service/bc';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/pages/registered/RegisteredAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Alert, Box, FormControl, FormControlLabel, Radio, RadioGroup } from '@m

import { B3CustomForm } from '@/components';
import { b3HexToRgb, getContrastColor } from '@/components/outSideComponents/utils/b3CustomStyles';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import {
checkUserBCEmail,
checkUserEmail,
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/pages/registered/RegisteredBCToB2B.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import CustomButton from '@/components/button/CustomButton';
import { getContrastColor } from '@/components/outSideComponents/utils/b3CustomStyles';
import B3Sping from '@/components/spin/B3Sping';
import { useMobile } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { GlobaledContext } from '@/shared/global';
import { useAppSelector } from '@/store';
import { OpenPageState } from '@/types/hooks';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/pages/registered/RegisteredDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import isEmpty from 'lodash-es/isEmpty';

import { B3CustomForm } from '@/components';
import { getContrastColor } from '@/components/outSideComponents/utils/b3CustomStyles';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { validateBCCompanyExtraFields } from '@/shared/service/b2b';

import RegisteredStepButton from './component/RegisteredStepButton';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/pages/registered/RegisteredFinish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Alert, Box } from '@mui/material';

import { getContrastColor } from '@/components/outSideComponents/utils/b3CustomStyles';
import { useMobile } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';
import { B3SStorage } from '@/utils';

import RegisteredStepButton from './component/RegisteredStepButton';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Box, Grid, styled, Typography } from '@mui/material';
import CustomButton from '@/components/button/CustomButton';
import { getContrastColor } from '@/components/outSideComponents/utils/b3CustomStyles';
import { useMobile } from '@/hooks';
import { CustomStyleContext } from '@/shared/customStyleButtton';
import { CustomStyleContext } from '@/shared/customStyleButton';

import { ShoppingStatus } from '../../shoppingLists/ShoppingStatus';

Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/react-setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';

import { CustomStyleProvider } from '@/shared/customStyleButtton';
import { CustomStyleProvider } from '@/shared/customStyleButton';
import { DynamicallyVariableProvider } from '@/shared/dynamicallyVariable';
import { GlobalProvider } from '@/shared/global';

Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ReactNode, useContext } from 'react';
import * as materialMultiLanguages from '@mui/material/locale';
import { createTheme, ThemeProvider } from '@mui/material/styles';

import { CustomStyleContext } from './shared/customStyleButtton';
import { CustomStyleContext } from './shared/customStyleButton';
import { BROWSER_LANG } from './constants';

type LangMapType = {
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/utils/storefrontConfig.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import isEmpty from 'lodash-es/isEmpty';

import { CustomStyleButtonState } from '@/shared/customStyleButtton/context/config';
import { CustomStyleButtonState } from '@/shared/customStyleButton/context/config';
import { DispatchProps } from '@/shared/global/context/config';
import {
getB2BRegisterLogo,
Expand Down

0 comments on commit d92c16c

Please sign in to comment.