Skip to content

Commit

Permalink
fix theme switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
nahbee10 committed Nov 18, 2024
1 parent 36ec2d9 commit 057e684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NewsletterForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const NewsletterForm: React.FC<NewsletterFormProps> = ({
/>
<Envelope className="absolute left-3 top-[50%] h-6 w-6 translate-y-[-50%]" color={globeColorClass} />
</div>
<button className="group mt-2 flex items-center justify-center rounded-large bg-light-pink-vibrant p-3 sm:w-32 transition hover:bg-dark-accent-2 dark:bg-dark-pink-vibrant hover:dark:bg-light-accent-2 sm:ml-2 sm:mt-0 w-full px-0 sm:px-3">
<button className="group mt-2 flex items-center justify-center rounded-large bg-light-pink-vibrant p-3 sm:w-32 transition hover:bg-dark-accent-2 dark:bg-dark-pink-vibrant hover:dark:bg-light-accent-2 sm:ml-2 sm:mt-0 w-full !px-0 sm:!px-3">
<span className="button-label-1 text-white transition group-hover:text-dark-accent-1 group-hover:dark:text-light-accent-1">
Submit
</span>
Expand Down
1 change: 1 addition & 0 deletions src/components/ThemeSwitch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const ThemeSwitch: FC<{ className?: string }> = ({ className }) => {

if (!currentTheme) {
ThemeManager.set('light')
setTheme('light')
} else {
setTheme(currentTheme)
}
Expand Down

0 comments on commit 057e684

Please sign in to comment.