Skip to content

Commit

Permalink
fix: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexZorkin committed Jan 10, 2022
1 parent 26895c0 commit 22fc45c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 0 additions & 2 deletions app/components/Form/ProjectManagerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ const ProjecManagerForm: React.FunctionComponent<Props> = (props) => {
{...props}
schema={schema}
uiSchema={uiSchema}
formContext={{}}
widgets={{}}
/>
);
};
Expand Down
8 changes: 0 additions & 8 deletions app/lib/theme/widgets/SelectParentComponentProps.tsx

This file was deleted.

8 changes: 7 additions & 1 deletion app/lib/theme/widgets/SelectParentWidget.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Dropdown from "@button-inc/bcgov-theme/Dropdown";
import { useMemo, useState } from "react";
import SelectParentComponentProps from "./SelectParentComponentProps";
import { WidgetProps } from "@rjsf/core";

export interface EntitySchema {
list: [{ rowId: any }];
Expand All @@ -9,6 +9,12 @@ export interface EntitySchema {
label: string;
}

interface SelectParentComponentProps extends WidgetProps {
parent: EntitySchema;
child: EntitySchema;
foreignKey: string;
}

const SelectParentWidget: React.FunctionComponent<
SelectParentComponentProps
> = ({
Expand Down

0 comments on commit 22fc45c

Please sign in to comment.