double qutes eslint rule

This commit is contained in:
tmshv committed 2022-09-06 14:52:56 +03:00
1 parent 2e517cc7f7
commit 85bc8c4af5
57 files changed
+370 -366

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
import Link from 'next/link'
import Link from "next/link"
export interface ActiveLinkProps {
href?: string
+7 -7
View File
@@ -1,15 +1,15 @@
import s from './styles.module.css'
import cx from 'classnames'
import { useRouter } from 'next/router'
import { ActiveLink } from './ActiveLink'
import { isPartOfPath } from 'src/lib/url'
import s from "./styles.module.css"
import cx from "classnames"
import { useRouter } from "next/router"
import { ActiveLink } from "./ActiveLink"
import { isPartOfPath } from "src/lib/url"
export type MenuItemProps = {
href: string
}
export const MenuItem: React.FC<MenuItemProps> = props => {
const ignore = ['/']
const ignore = ["/"]
const router = useRouter()
const current = router.asPath === props.href
const selected = current || (!ignore.includes(props.href) && isPartOfPath(props.href, router.asPath))
@@ -24,7 +24,7 @@ export const MenuItem: React.FC<MenuItemProps> = props => {
<ActiveLink
href={href}
activeStyle={{
fontWeight: 'bold',
fontWeight: "bold",
}}
>
{props.children}
+5 -5
View File
@@ -1,8 +1,8 @@
import s from './styles.module.css'
import s from "./styles.module.css"
import cx from 'classnames'
import { MenuItem } from './MenuItem'
import { IMenu } from 'src/types'
import cx from "classnames"
import { MenuItem } from "./MenuItem"
import { IMenu } from "src/types"
const layoutClass = {
desktop: s.desktop,
@@ -10,7 +10,7 @@ const layoutClass = {
}
export type MenuProps = {
layout: 'desktop' | 'mobile'
layout: "desktop" | "mobile"
items: IMenu[]
}