Display default theme at top

This commit is contained in:
MD. Ariful Alam 2021-09-15 18:36:37 +06:00
parent fd1a96c160
commit 343ad767f0

View File

@ -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