Rename to NavMenu to avoid confusion

This commit is contained in:
Lim Chee Aun 2023-04-26 13:09:44 +08:00
parent e39ed219eb
commit 211e4ff74d
6 changed files with 10 additions and 10 deletions

View file

@ -14,7 +14,7 @@ import useScroll from '../utils/useScroll';
import Icon from './icon'; import Icon from './icon';
import Link from './link'; import Link from './link';
import Loader from './loader'; import Loader from './loader';
import Menu from './menu'; import NavMenu from './nav-menu';
import Status from './status'; import Status from './status';
function Timeline({ function Timeline({
@ -275,7 +275,7 @@ function Timeline({
> >
<div class="header-grid"> <div class="header-grid">
<div class="header-side"> <div class="header-side">
<Menu /> <NavMenu />
{headerStart !== null && headerStart !== undefined ? ( {headerStart !== null && headerStart !== undefined ? (
headerStart headerStart
) : ( ) : (

View file

@ -3,7 +3,7 @@ import { useEffect, useState } from 'preact/hooks';
import Icon from '../components/icon'; import Icon from '../components/icon';
import Link from '../components/link'; import Link from '../components/link';
import Loader from '../components/loader'; import Loader from '../components/loader';
import Menu from '../components/menu'; import NavMenu from '../components/nav-menu';
import { api } from '../utils/api'; import { api } from '../utils/api';
import useTitle from '../utils/useTitle'; import useTitle from '../utils/useTitle';
@ -45,7 +45,7 @@ function FollowedHashtags() {
<header> <header>
<div class="header-grid"> <div class="header-grid">
<div class="header-side"> <div class="header-side">
<Menu /> <NavMenu />
<Link to="/" class="button plain"> <Link to="/" class="button plain">
<Icon icon="home" size="l" /> <Icon icon="home" size="l" />
</Link> </Link>

View file

@ -6,8 +6,8 @@ import Icon from '../components/icon';
import Link from '../components/link'; import Link from '../components/link';
import ListAddEdit from '../components/list-add-edit'; import ListAddEdit from '../components/list-add-edit';
import Loader from '../components/loader'; import Loader from '../components/loader';
import Menu from '../components/menu';
import Modal from '../components/modal'; import Modal from '../components/modal';
import NavMenu from '../components/nav-menu';
import { api } from '../utils/api'; import { api } from '../utils/api';
import useTitle from '../utils/useTitle'; import useTitle from '../utils/useTitle';
@ -41,7 +41,7 @@ function Lists() {
<header> <header>
<div class="header-grid"> <div class="header-grid">
<div class="header-side"> <div class="header-side">
<Menu /> <NavMenu />
<Link to="/" class="button plain"> <Link to="/" class="button plain">
<Icon icon="home" size="l" /> <Icon icon="home" size="l" />
</Link> </Link>

View file

@ -8,8 +8,8 @@ import Avatar from '../components/avatar';
import Icon from '../components/icon'; import Icon from '../components/icon';
import Link from '../components/link'; import Link from '../components/link';
import Loader from '../components/loader'; import Loader from '../components/loader';
import Menu from '../components/menu';
import NameText from '../components/name-text'; import NameText from '../components/name-text';
import NavMenu from '../components/nav-menu';
import RelativeTime from '../components/relative-time'; import RelativeTime from '../components/relative-time';
import Status from '../components/status'; import Status from '../components/status';
import { api } from '../utils/api'; import { api } from '../utils/api';
@ -166,7 +166,7 @@ function Notifications() {
> >
<div class="header-grid"> <div class="header-grid">
<div class="header-side"> <div class="header-side">
<Menu /> <NavMenu />
<Link to="/" class="button plain"> <Link to="/" class="button plain">
<Icon icon="home" size="l" alt="Home" /> <Icon icon="home" size="l" alt="Home" />
</Link> </Link>

View file

@ -7,7 +7,7 @@ import AccountBlock from '../components/account-block';
import Icon from '../components/icon'; import Icon from '../components/icon';
import Link from '../components/link'; import Link from '../components/link';
import Loader from '../components/loader'; import Loader from '../components/loader';
import Menu from '../components/menu'; import NavMenu from '../components/nav-menu';
import Status from '../components/status'; import Status from '../components/status';
import { api } from '../utils/api'; import { api } from '../utils/api';
import useTitle from '../utils/useTitle'; import useTitle from '../utils/useTitle';
@ -53,7 +53,7 @@ function Search(props) {
<header> <header>
<div class="header-grid"> <div class="header-grid">
<div class="header-side"> <div class="header-side">
<Menu /> <NavMenu />
</div> </div>
<form <form
onSubmit={(e) => { onSubmit={(e) => {