Skip to content

Commit

Permalink
style(frontend): fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Jan 20, 2025
1 parent efb44bf commit 8c854af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend-v2/src/components/DropdownButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Option = {

type Props = {
options: Option[];
onOptionSelected: (value: any) => void;
onOptionSelected: (value: Option["value"]) => void;
children?: ReactNode;
disabled?: boolean;
data_cy?: string;
Expand Down
7 changes: 6 additions & 1 deletion frontend-v2/src/features/simulation/useExportSimulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import {
ProjectRead,
SimulateResponse,
} from "../../app/backendApi";
import { FetchBaseQueryError } from "@reduxjs/toolkit/query";
import { SerializedError } from "@reduxjs/toolkit";

interface iExportSimulation {
simInputs: Simulate;
Expand Down Expand Up @@ -47,7 +49,10 @@ export default function useExportSimulation({
simInputs,
model,
project,
}: iExportSimulation): [() => void, { error: any }] {
}: iExportSimulation): [
() => void,
{ error: FetchBaseQueryError | SerializedError | undefined },
] {
const { groups } = useSubjectGroups();
const { compound, protocols } = useProtocols();
const { data: variables } = useVariableListQuery(
Expand Down

0 comments on commit 8c854af

Please sign in to comment.