chore: changelog update
This commit is contained in:
parent
970731ee6f
commit
abac05d844
4 changed files with 24 additions and 23 deletions
|
@ -8,6 +8,7 @@
|
|||
#### Changed
|
||||
|
||||
- Setting Path.render() no longer raises an info message
|
||||
- Always raise debug, but only store it whend debug is enabled
|
||||
|
||||
### simon
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ unreleased:
|
|||
Changed:
|
||||
core:
|
||||
- Setting Path.render() no longer raises an info message
|
||||
- Always raise debug, but only store it whend debug is enabled
|
||||
|
||||
Fixed:
|
||||
simon:
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
### Changed
|
||||
|
||||
- Setting Path.render() no longer raises an info message
|
||||
- Always raise debug, but only store it whend debug is enabled
|
||||
|
||||
## 2.20.0 (2022-01-24)
|
||||
|
||||
|
|
|
@ -2,28 +2,26 @@ import themes from 'shared/themes/index.js'
|
|||
import LocaleIcon from 'shared/components/icons/i18n.js'
|
||||
import { languages } from 'pkgs/i18n'
|
||||
|
||||
const LocalePicker = ({ app }) => {
|
||||
return (
|
||||
<div className="dropdown">
|
||||
<div tabIndex="0" className={`
|
||||
m-0 btn btn-neutral flex flex-row gap-2
|
||||
sm:btn-ghost
|
||||
hover:bg-neutral hover:border-neutral-content
|
||||
`}>
|
||||
<LocaleIcon />
|
||||
<span>{languages[app.locale]}</span>
|
||||
</div>
|
||||
<ul tabIndex="0" className="p-2 shadow menu dropdown-content bg-base-100 rounded-box w-52">
|
||||
{Object.keys(app.locales).map(locale => (
|
||||
<li key={locale}>
|
||||
<button onClick={() => app.changeLocale(locale)} className="btn btn-ghost text-base-content hover:bg-base-200">
|
||||
{languages[locale]}
|
||||
</button>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
const LocalePicker = ({ app }) => (
|
||||
<div className="dropdown">
|
||||
<div tabIndex="0" className={`
|
||||
m-0 btn btn-neutral flex flex-row gap-2
|
||||
sm:btn-ghost
|
||||
hover:bg-neutral hover:border-neutral-content
|
||||
`}>
|
||||
<LocaleIcon />
|
||||
<span>{languages[app.locale]}</span>
|
||||
</div>
|
||||
<ul tabIndex="0" className="p-2 shadow menu dropdown-content bg-base-100 rounded-box w-52">
|
||||
{Object.keys(app.locales).map(locale => (
|
||||
<li key={locale}>
|
||||
<button onClick={() => app.changeLocale(locale)} className="btn btn-ghost text-base-content hover:bg-base-200">
|
||||
{languages[locale]}
|
||||
</button>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
)
|
||||
|
||||
export default LocalePicker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue