style: fix lint issues

This commit is contained in:
Jean-Philippe Sirois
2019-08-18 23:58:11 -04:00
parent 71557fa75b
commit e7f1f0728a
23 changed files with 55 additions and 51 deletions
+4 -4
View File
@@ -1,21 +1,21 @@
import React, { useState } from "react"
interface SidebarProviderProps {
interface ISidebarProviderProps {
children: React.ReactNode
}
export interface SidebarContextInterface {
export interface ISidebarContextInterface {
current: number
setCurrent: (index: number) => void
}
export const SidebarContext = React.createContext<SidebarContextInterface | null>(
export const SidebarContext = React.createContext<ISidebarContextInterface | null>(
null
)
export function SidebarProvider({
children,
}: SidebarProviderProps): JSX.Element {
}: ISidebarProviderProps): JSX.Element {
const [current, setCurrent] = useState(0)
function selectFirstLevel(index: number) {