fix eslint warnings
This commit is contained in:
1 parent
501ce4d3d0
commit
2e517cc7f7
3 files changed
+4
-7
No files matched your search
+2
-4
@@ -40,10 +40,8 @@ const Index: NextPage<Props> = props => (
|
|||||||
)
|
)
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps<Props> = async () => {
|
export const getStaticProps: GetStaticProps<Props> = async () => {
|
||||||
const items = await apiGet(createHomeCards)
|
const items = await apiGet(createHomeCards)('https://hudozka.tmshv.com/home', async () => [])
|
||||||
('https://hudozka.tmshv.com/home', async () => [])
|
const menu = await apiGet(createMenu)('https://hudozka.tmshv.com/menu', () => [])
|
||||||
const menu = await apiGet(createMenu)
|
|
||||||
('https://hudozka.tmshv.com/menu', () => [])
|
|
||||||
|
|
||||||
const title = 'Шлиссельбургская ДХШ'
|
const title = 'Шлиссельбургская ДХШ'
|
||||||
const meta = (new MetaBuilder())
|
const meta = (new MetaBuilder())
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ export const Transition: React.FC<ITransitionProps> = props => {
|
|||||||
}, [opacity])
|
}, [opacity])
|
||||||
const transition = React.useMemo(
|
const transition = React.useMemo(
|
||||||
() => `all ${props.duration}ms`,
|
() => `all ${props.duration}ms`,
|
||||||
[props.duration])
|
[props.duration]
|
||||||
|
)
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (!props.show) {
|
if (!props.show) {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import * as React from 'react'
|
|
||||||
|
|
||||||
export const Share: React.FC = () => (
|
export const Share: React.FC = () => (
|
||||||
<div className="likely">
|
<div className="likely">
|
||||||
<div className="vkontakte">Поделиться</div>
|
<div className="vkontakte">Поделиться</div>
|
||||||
|
|||||||
Reference in new issue
Block a user