Make mandala the default page.
rodzic
1cbe2b6d22
commit
8be5792838
|
@ -42,7 +42,7 @@ export const Page: React.FC<PageProps> = ({ title, children }) => {
|
||||||
return (
|
return (
|
||||||
<div className="page">
|
<div className="page">
|
||||||
<header>
|
<header>
|
||||||
<h1>{title}</h1>
|
<h1>Mystic Symbolic {title}</h1>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
</header>
|
</header>
|
||||||
{children}
|
{children}
|
||||||
|
|
|
@ -16,7 +16,7 @@ export type PageName = keyof typeof Pages;
|
||||||
|
|
||||||
export const pageNames = Object.keys(Pages) as PageName[];
|
export const pageNames = Object.keys(Pages) as PageName[];
|
||||||
|
|
||||||
export const DEFAULT_PAGE: PageName = "vocabulary";
|
export const DEFAULT_PAGE: PageName = "mandala";
|
||||||
|
|
||||||
export function isPageName(page: string): page is PageName {
|
export function isPageName(page: string): page is PageName {
|
||||||
return pageNames.includes(page as any);
|
return pageNames.includes(page as any);
|
||||||
|
|
|
@ -50,7 +50,7 @@ export const VocabularyPage: React.FC<{}> = () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page title="Mystic Symbolic Vocabulary">
|
<Page title="Vocabulary!">
|
||||||
<div className="sidebar">
|
<div className="sidebar">
|
||||||
<div className="flex-widget">
|
<div className="flex-widget">
|
||||||
<label htmlFor="filter">Search for symbols: </label>
|
<label htmlFor="filter">Search for symbols: </label>
|
||||||
|
|
Ładowanie…
Reference in New Issue