Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Jul 22, 2024
1 parent da29244 commit 5dae2fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Atom, Getter, PrimitiveAtom, atom, useAtom, useAtomValue } from "jotai";
import { Atom, Getter, atom, useAtomValue } from "jotai";

export type InterfaceBaseType = Record<string, unknown>;
export type InterfaceInitialization<T extends InterfaceBaseType> = {
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/modules/MyModule2/settings.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React from "react";

import { ModuleSettingsProps } from "@framework/Module";
import { Input } from "@lib/components/Input";
import { Label } from "@lib/components/Label";

import { useAtom } from "jotai";

import { textAtom } from "./atoms";
import { SettingsToViewInterface, State } from "./state";

export const Settings = (props: ModuleSettingsProps<State, SettingsToViewInterface>) => {
export const Settings = () => {
const [atomText, setAtomText] = useAtom(textAtom);

function handleAtomTextChange(event: React.ChangeEvent<HTMLInputElement>) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/modules/Pvt/settings/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
} from "../typesAndEnums";
import { computeRealizationsIntersection } from "../utils/realizationsIntersection";

export function Settings({ settingsContext, workbenchSession }: ModuleSettingsProps<State, SettingsToViewInterface>) {
export function Settings({ workbenchSession }: ModuleSettingsProps<State, SettingsToViewInterface>) {
const ensembleSet = useEnsembleSet(workbenchSession);
const filterEnsembleRealizationsFunc = useEnsembleRealizationFilterFunc(workbenchSession);

Expand Down

0 comments on commit 5dae2fd

Please sign in to comment.