Skip to content

Commit

Permalink
Menu -> NavigationSidebar, mv ErrorBoundary to helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed Aug 22, 2023
1 parent 3993391 commit 593f5c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/js/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import useLocalState from '@/state/useLocalState.ts';

import Footer from './components/Footer';
import Show from './components/helpers/Show';
import Menu from './components/Menu';
import Modal from './components/modal/Modal';
import NavigationSidebar from './components/NavigationSidebar.tsx';
import localState from './state/LocalState.ts';
import { translationLoaded } from './translations/Translation.mjs';
import Helpers from './utils/Helpers';
Expand Down Expand Up @@ -80,7 +80,7 @@ const Main = () => {
<div className="flex justify-center">
<section className="flex w-full max-w-screen-xl justify-between relative">
<Show when={loggedIn}>
<Menu />
<NavigationSidebar />
</Show>
<Helmet titleTemplate={titleTemplate} defaultTitle={defaultTitle}>
<title>{title}</title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const MENU_ITEMS = [
},
];

export default function Menu() {
export default function NavigationSidebar() {
const [unseenMsgsTotal, setUnseenMsgsTotal] = useState(0);
const [activeRoute, setActiveRoute] = useState('');
const [showNewPostModal, setShowNewPostModal] = useState(false);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/js/views/View.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import debounce from 'lodash/debounce';
import { useEffect, useRef } from 'preact/hooks';

import ErrorBoundary from '../components/ErrorBoundary';
import Header from '../components/header/Header.tsx';
import ErrorBoundary from '../components/helpers/ErrorBoundary.tsx';
import Show from '../components/helpers/Show';

import Search from './Search';
Expand Down

0 comments on commit 593f5c7

Please sign in to comment.