test(web): add eslint and PR lint validation

This commit is contained in:
Paul Armstrong
2021-02-09 11:35:33 -08:00
committed by Blake Blackshear
parent 513a099c24
commit daa759cc55
33 changed files with 5190 additions and 505 deletions

View File

@@ -3,8 +3,8 @@ import LinkedLogo from './components/LinkedLogo';
import { Match } from 'preact-router/match';
import { memo } from 'preact/compat';
import { useConfig } from './api';
import { useMemo } from 'preact/hooks';
import NavigationDrawer, { Destination, Separator } from './components/NavigationDrawer';
import { useCallback, useMemo } from 'preact/hooks';
export default function Sidebar() {
const { data: config } = useConfig();
@@ -42,9 +42,9 @@ export default function Sidebar() {
);
}
const Header = memo(function Header() {
const Header = memo(() => {
return (
<div class="text-gray-500">
<div className="text-gray-500">
<LinkedLogo />
</div>
);