mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 23:43:45 +02:00
refact: convert components to use React.FC type + type improvements
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
d61c218657
commit
1d88367645
@@ -1,8 +1,8 @@
|
||||
import React from "react"
|
||||
import React, { FC } from "react"
|
||||
import useTheme from "../../hooks/useTheme"
|
||||
import * as SC from "./styles"
|
||||
|
||||
export function ThemeToggler() {
|
||||
export const ThemeToggler: FC = () => {
|
||||
const { theme, toggleTheme } = useTheme()
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user