ran prettier with new config on components directory

This commit is contained in:
Benjamin Lesne 2023-10-18 14:50:19 +02:00
parent 3c7e2c5c53
commit c9ae2edb93
4 changed files with 6 additions and 6 deletions

View File

@ -25,14 +25,14 @@ const Header = () => {
</div>
</Link>
</div>
<div className="flex items-center leading-5 space-x-4 sm:space-x-6">
<div className="flex items-center space-x-4 leading-5 sm:space-x-6">
{headerNavLinks
.filter((link) => link.href !== '/')
.map((link) => (
<Link
key={link.title}
href={link.href}
className="hidden sm:block font-medium text-gray-900 dark:text-gray-100"
className="hidden font-medium text-gray-900 dark:text-gray-100 sm:block"
>
{link.title}
</Link>

View File

@ -26,7 +26,7 @@ const MobileNav = () => {
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
className="text-gray-900 dark:text-gray-100 h-8 w-8"
className="h-8 w-8 text-gray-900 dark:text-gray-100"
>
<path
fillRule="evenodd"
@ -36,7 +36,7 @@ const MobileNav = () => {
</svg>
</button>
<div
className={`fixed left-0 top-0 z-10 h-full w-full transform opacity-95 dark:opacity-[0.98] bg-white duration-300 ease-in-out dark:bg-gray-950 ${
className={`fixed left-0 top-0 z-10 h-full w-full transform bg-white opacity-95 duration-300 ease-in-out dark:bg-gray-950 dark:opacity-[0.98] ${
navShow ? 'translate-x-0' : 'translate-x-full'
}`}
>

View File

@ -18,7 +18,7 @@ const SearchButton = () => {
viewBox="0 0 24 24"
strokeWidth={1.5}
stroke="currentColor"
className="text-gray-900 dark:text-gray-100 h-6 w-6"
className="h-6 w-6 text-gray-900 dark:text-gray-100"
>
<path
strokeLinecap="round"

View File

@ -23,7 +23,7 @@ const ThemeSwitch = () => {
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
className="text-gray-900 dark:text-gray-100 h-6 w-6"
className="h-6 w-6 text-gray-900 dark:text-gray-100"
>
{mounted && (theme === 'dark' || resolvedTheme === 'dark') ? (
<path