fix: was changed name of component

This commit is contained in:
Rodrigo Pinheiro Matias 2024-10-06 00:38:53 -03:00
parent 135111753d
commit 2adba15157
3 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ import * as Yup from 'yup';
import { useSelector, useDispatch } from 'react-redux';
import { savePreferences } from 'providers/ReduxStore/slices/app';
const Window = (props) => {
const MainWindow = (props) => {
const preferences = useSelector((state) => state.app.preferences);
const dispatch = useDispatch();
@ -57,4 +57,4 @@ const Window = (props) => {
);
};
export default Window;
export default MainWindow;

View File

@ -9,7 +9,7 @@ import Display from './Display';
import Keybindings from './Keybindings';
import StyledWrapper from './StyledWrapper';
import Window from './Window/index';
import MainWindow from './MainWindow/index';
const Preferences = ({ onClose }) => {
const [tab, setTab] = useState('general');
@ -35,7 +35,7 @@ const Preferences = ({ onClose }) => {
}
case 'interface': {
return <Window close={onClose} />;
return <MainWindow close={onClose} />;
}
case 'keybindings': {
@ -51,7 +51,7 @@ const Preferences = ({ onClose }) => {
}
case 'window': {
return <Window close={onClose} />;
return <MainWindow close={onClose} />;
}
}
};