Skip to content

Commit

Permalink
define types to simplify further development
Browse files Browse the repository at this point in the history
  • Loading branch information
obfuscatedgenerated committed Jun 2, 2022
1 parent f28f419 commit 5b40d7e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/js/popup/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import * as React from "react";
import { Flex, Box, Image, Text, Button } from "rebass";

interface PageParams {
url: any,
moveUp: any,
moveDown: any
url: string,
moveUp: Function,
moveDown: Function
}

function Page({ url, moveUp, moveDown }: PageParams) {
Expand All @@ -30,9 +30,9 @@ function Page({ url, moveUp, moveDown }: PageParams) {
};

interface ResetButtonParams {
reset: any,
styleOverride: any,
children: any
reset: Function,
styleOverride: Object,
children: React.ReactNode
}

function ResetButton({ reset, styleOverride, children }: ResetButtonParams) {
Expand All @@ -54,8 +54,8 @@ function ResetButton({ reset, styleOverride, children }: ResetButtonParams) {

interface CheckboxParams {
checked: boolean,
onChange: any,
children: any
onChange: React.ChangeEventHandler<HTMLInputElement>,
children: React.ReactNode
}

function Checkbox({ checked, onChange, children }: CheckboxParams) {
Expand Down

0 comments on commit 5b40d7e

Please sign in to comment.