Skip to content

Commit

Permalink
tsc error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
doggan committed Sep 7, 2023
1 parent 1b483df commit 858633f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/desktop-client/src/components/common/MenuButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import DotsHorizontalTriple from '../../icons/v1/DotsHorizontalTriple';

import Button from './Button';

export default function MenuButton({ onClick }) {
type MenuButtonProps = {
onClick: () => void;
};

export default function MenuButton({ onClick }: MenuButtonProps) {
return (
<Button type="bare" onClick={onClick} aria-label="Menu">
<DotsHorizontalTriple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function renderResults(results: Results) {

export default function FixSplitsTool() {
let [loading, setLoading] = useState(false);
let [results, setResults] = useState<Results>(null);
let [results, setResults] = useState<Results | null>(null);

async function onFix() {
setLoading(true);
Expand Down

0 comments on commit 858633f

Please sign in to comment.