fix eslint errors

This commit is contained in:
tmshv committed 2022-09-06 14:34:50 +03:00
1 parent a732ec0640
commit 86a02a945b
12 files changed
+89 -89

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ export const App: React.FC<IAppProps> = ({ showAuthor = false, menu, ...props })
const hideBreadcrumbs = useMobile()
const router = useRouter()
const blockStyle = {
justifyContent: 'center'
justifyContent: 'center',
}
return (
+1
View File
@@ -29,6 +29,7 @@ export const FileCard: React.FC<FileCardProps> = props => {
})
}}
src={props.image_url}
alt={''}
width={100}
height={100}
objectFit={'contain'}
+1 -1
View File
@@ -11,6 +11,6 @@ export const Html: React.FC<HtmlProps> = ({ as = 'div', ...props }) => {
className: props.className,
dangerouslySetInnerHTML: {
__html: props.html,
}
},
})
}
+1 -1
View File
@@ -24,7 +24,7 @@ export const MenuItem: React.FC<MenuItemProps> = props => {
<ActiveLink
href={href}
activeStyle={{
fontWeight: 'bold'
fontWeight: 'bold',
}}
>
{props.children}
+9 -9
View File
@@ -34,7 +34,7 @@ export const Navigation: React.FC<INavigationProps> = props => {
open={open}
onClick={onClick}
style={{
margin: 'var(--size-xs)'
margin: 'var(--size-xs)',
}}
/>
</Block>
@@ -59,18 +59,18 @@ export const Navigation: React.FC<INavigationProps> = props => {
open={open}
onClick={onClick}
style={{
margin: 'var(--size-xs)'
margin: 'var(--size-xs)',
}}
/>
</Block>
) : (
<nav style={props.style}>
<Menu
layout={'desktop'}
items={menu}
/>
</nav>
)}
<nav style={props.style}>
<Menu
layout={'desktop'}
items={menu}
/>
</nav>
)}
</>
)
}
+2 -2
View File
@@ -7,5 +7,5 @@ export type SpacerProps = {
export const Spacer: React.FC<SpacerProps> = ({ as = 'div' }) => createElement(as, {
style: {
flex: 1,
}
})
},
})