Display default theme at top
This commit is contained in:
parent
fd1a96c160
commit
343ad767f0
@ -45,7 +45,7 @@ const ThemeChanger = () => {
|
||||
<div tabIndex={0} className="mt-16 overflow-y-auto shadow-2xl top-px dropdown-content h-96 w-52 rounded-b-box bg-base-200 text-base-content">
|
||||
<ul className="p-4 menu compact">
|
||||
{
|
||||
config.themeConfig.themes.map((item, index) => (
|
||||
[config.themeConfig.default, ...config.themeConfig.themes.filter(item => item !== config.themeConfig.default)].map((item, index) => (
|
||||
<li key={index}>
|
||||
{/* eslint-disable-next-line */}
|
||||
<a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user