Fix page titles and remove field settings page

This commit is contained in:
Misode
2021-10-04 22:52:50 +02:00
parent c7d5b06825
commit 6c6277217d
4 changed files with 5 additions and 22 deletions

View File

@@ -8,7 +8,7 @@ import '../styles/nodes.css'
import { Analytics } from './Analytics'
import { Header } from './components'
import { loadLocale, locale, Locales } from './Locales'
import { FieldSettings, Generator, Home, Worldgen } from './pages'
import { Generator, Home, Worldgen } from './pages'
import type { VersionId } from './Schemas'
import { Store } from './Store'
import { cleanUrl } from './Utils'
@@ -70,7 +70,6 @@ function Main() {
<Header {...{lang, title, version, theme, language: lang, changeLanguage, changeTheme}} />
<Router onChange={changeRoute}>
<Home path="/" {...{lang, changeTitle}} />
<FieldSettings path="/settings/fields" {...{lang, changeTitle}} />
<Worldgen path="/worldgen" {...{lang, changeTitle}} />
<Generator default {...{lang, version, changeTitle}} onChangeVersion={changeVersion} />
</Router>

View File

@@ -1,17 +0,0 @@
import { locale } from '../Locales'
type FieldSettingsProps = {
lang: string,
path?: string,
}
export function FieldSettings({ lang }: FieldSettingsProps) {
const loc = locale.bind(null, lang)
return <main>
<div class="settings">
<p>{loc('settings.fields.description')}</p>
<ul class="field-list">
</ul>
</div>
</main>
}

View File

@@ -1,4 +1,3 @@
export * from './FieldSettings'
export * from './Generator'
export * from './Home'
export * from './Worldgen'