generated from Fascinated/nextjs-13-template-with-tailwindcss
add fallback color
All checks were successful
Publish Docker Image / docker (push) Successful in 1m45s
All checks were successful
Publish Docker Image / docker (push) Successful in 1m45s
This commit is contained in:
parent
0aeb7bea4b
commit
c56e03ab9d
@ -40,7 +40,7 @@ export default function Home() {
|
||||
buttonTextColor: "text-white",
|
||||
},
|
||||
};
|
||||
const selectedTheme = themeColors[theme]; // The theme to use
|
||||
const selectedTheme = themeColors[theme] || themeColors.dark; // The theme to use (fallback of dark)
|
||||
|
||||
return (
|
||||
<>
|
||||
|
Loading…
x
Reference in New Issue
Block a user