♻️ Refactor and remove React.FC (#1139)

This commit is contained in:
Alejandra
2024-03-28 20:22:28 -05:00
committed by GitHub
parent 802eeeadc9
commit 6874db48b0
17 changed files with 31 additions and 45 deletions
@@ -1,6 +1,5 @@
import { Box, Flex, Icon, Text, useColorModeValue } from "@chakra-ui/react"
import { Link } from "@tanstack/react-router"
import type React from "react"
import { FiBriefcase, FiHome, FiSettings, FiUsers } from "react-icons/fi"
import { useQueryClient } from "react-query"
@@ -16,7 +15,7 @@ interface SidebarItemsProps {
onClose?: () => void
}
const SidebarItems: React.FC<SidebarItemsProps> = ({ onClose }) => {
const SidebarItems = ({ onClose }: SidebarItemsProps) => {
const queryClient = useQueryClient()
const textColor = useColorModeValue("ui.main", "ui.white")
const bgActive = useColorModeValue("#E2E8F0", "#4A5568")