This commit is contained in:
parent
06d18e8901
commit
0c6aaef5d1
|
|
@ -2,6 +2,7 @@ import { ContentType } from "@/types"
|
||||||
import { FC } from "react"
|
import { FC } from "react"
|
||||||
import { TabsTrigger } from "../ui/tabs"
|
import { TabsTrigger } from "../ui/tabs"
|
||||||
import { WithTooltip } from "../ui/with-tooltip"
|
import { WithTooltip } from "../ui/with-tooltip"
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
interface SidebarSwitchItemProps {
|
interface SidebarSwitchItemProps {
|
||||||
contentType: ContentType
|
contentType: ContentType
|
||||||
|
|
@ -14,6 +15,7 @@ export const SidebarSwitchItem: FC<SidebarSwitchItemProps> = ({
|
||||||
icon,
|
icon,
|
||||||
onContentTypeChange
|
onContentTypeChange
|
||||||
}) => {
|
}) => {
|
||||||
|
const { t } = useTranslation()
|
||||||
return (
|
return (
|
||||||
<WithTooltip
|
<WithTooltip
|
||||||
display={
|
display={
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue