Skip to content

Commit

Permalink
Rename ResourceExplorer to Router 🚦.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarty committed Jun 15, 2024
1 parent d8db4e6 commit 6be382c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import { useRom } from './contexts/RomContext';
import Layout from './components/Layout';
import DropZoneContainer from './containers/DropZoneContainer';
import ResourceExplorer from './containers/ResourceExplorer';
import Router from './containers/Router';

const App = () => {
const { prg, res, resources } = useRom();

return (
<Layout>
{!prg || !res || !resources ? (
<DropZoneContainer />
) : (
<ResourceExplorer />
)}
{!prg || !res || !resources ? <DropZoneContainer /> : <Router />}
</Layout>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import TitlesContainer from './TitlesContainer';
import SettingsContainer from './SettingsContainer';
import ScriptContainer from './ScriptContainer';

const ResourceExplorer = () => {
const Router = () => {
const { prg, res, resources } = useRom();

if (!resources) {
Expand Down Expand Up @@ -180,4 +180,4 @@ const ResourceExplorer = () => {
);
};

export default ResourceExplorer;
export default Router;

0 comments on commit 6be382c

Please sign in to comment.