Skip to content

Commit

Permalink
fix: move ThemeSwitcher and PageLoader to widgets layer
Browse files Browse the repository at this point in the history
  • Loading branch information
sashtje committed Sep 14, 2023
1 parent 8405666 commit fa85d16
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/providers/router/ui/AppRouter.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { memo, Suspense, useCallback } from 'react';
import { Route, Routes } from 'react-router-dom';

import { PageLoader } from 'shared/ui/PageLoader';
import { PageLoader } from 'widgets/PageLoader';
import { routerConfig, AppRoutesProps } from 'shared/config/routerConfig';

import { RequireAuth } from './RequireAuth';
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { Button } from './Button';
export { AppLink } from './AppLink';
export { ThemeSwitcher } from './ThemeSwitcher';
export { ThemeSwitcher } from '../../widgets/ThemeSwitcher';
export { LangSwitcher } from './LangSwitcher';
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { classNames } from 'shared/lib/classNames';
import { Loader } from 'shared/ui/Loader';

import { Loader } from '../../Loader';
import cls from './PageLoader.module.scss';

interface PageLoaderProps {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { classNames } from 'shared/lib/classNames';
import LightIcon from 'shared/assets/icons/theme-light.svg';
import DarkIcon from 'shared/assets/icons/theme-dark.svg';
import { Theme, useTheme } from 'app/providers/ThemeProvider';

import { Button, ButtonTheme } from '../../Button';
import { Button, ButtonTheme } from 'shared/ui/Button';

interface ThemeSwitcherProps {
className?: string;
Expand Down

0 comments on commit fa85d16

Please sign in to comment.