From 19cb087abd879fc34176da8ba52c8a75722999e6 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Thu, 21 Nov 2024 16:54:21 +0100 Subject: [PATCH] simplify --- next-enterprise/src/app/ThemeButton.tsx | 4 ++-- next-enterprise/src/app/actions.ts | 8 +------- next-enterprise/src/app/layout.tsx | 4 ++-- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/next-enterprise/src/app/ThemeButton.tsx b/next-enterprise/src/app/ThemeButton.tsx index 012d97b..e03567e 100644 --- a/next-enterprise/src/app/ThemeButton.tsx +++ b/next-enterprise/src/app/ThemeButton.tsx @@ -4,14 +4,14 @@ import type {SyncTag} from '@sanity/client' import {useTransition} from 'react' import {randomColorTheme} from './actions' -export function ThemeButton({tags}: {tags: SyncTag[]}) { +export function ThemeButton() { const [pending, startTransition] = useTransition() return (