Skip to content

Commit 89037d7

Browse files
committed
cleanup unused
1 parent 52be3fb commit 89037d7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/avatar-group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const AvatarGroup = ({
8787
gap = spacing
8888
}
8989

90-
let start = (idx: number): StartValue => 'auto'
90+
let start = (_idx: number): StartValue => 'auto'
9191
if (align) {
9292
const alignArray = Array.isArray(align) ? align : [align]
9393
start = (idx) => {

src/blockquote.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const specialChars = ['“', '"', "'", '‘']
88
const Blockquote = ({ children }: BlockquoteProps) => {
99
return (
1010
<Box variant='styles.blockquote'>
11-
{Children.map(children, (d: React.ReactNode, i: number) => {
11+
{Children.map(children, (d: React.ReactNode) => {
1212
let firstChar = ''
1313
let remaining: React.ReactNode = d
1414
if (React.isValidElement(d) && typeof d.props.children === 'string') {

src/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, ReactNode, MouseEvent } from 'react'
1+
import React, { useState, ReactNode } from 'react'
22
import { default as NextLink } from 'next/link'
33
import { Box, Flex, Container, Link, ThemeUIStyleObject } from 'theme-ui'
44
import { Arrow } from '@carbonplan/icons'
@@ -145,7 +145,7 @@ export interface HeaderProps {
145145
const Header = ({ status, mode, nav, menuItems }: HeaderProps) => {
146146
const [expanded, setExpanded] = useState(false)
147147

148-
const toggle = (e: MouseEvent<HTMLButtonElement>) => {
148+
const toggle = () => {
149149
setExpanded(!expanded)
150150
}
151151

src/scrollbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect } from 'react'
1+
import { useEffect } from 'react'
22
import getScrollbarWidth from './utils/get-scrollbar-width'
33

44
const Scrollbar = () => {

0 commit comments

Comments
 (0)