Skip to content

Commit

Permalink
cleanup connector field
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsmosowi committed Apr 25, 2022
1 parent c19a29f commit 97076b6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/components/fields/Connector/PopoverCell.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IPopoverCellProps } from "../types";

import ConnectServiceSelect from "./Select";
import Selector from "./Select";

export default function ConnectService({
value,
Expand All @@ -12,7 +12,7 @@ export default function ConnectService({
docRef,
}: IPopoverCellProps) {
return (
<ConnectServiceSelect
<Selector
value={value}
onChange={onSubmit}
column={column}
Expand Down
6 changes: 0 additions & 6 deletions src/components/fields/Connector/Select/PopupContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { IConnectorSelectProps } from ".";
import useStyles from "./styles";
import Loading from "@src/components/Loading";
import { useProjectContext } from "@src/contexts/ProjectContext";
import { replacer } from "@src/utils/fns";
import { getLabel } from "../utils";
import { useSnackbar } from "notistack";

Expand Down Expand Up @@ -128,11 +127,6 @@ export default function PopupContents({
<List className={classes.list}>
{hits.map((hit) => {
const isSelected = selectedValues.some((v) => v === hit[elementId]);
console.log({
isSelected,
selectedValues,
elementId,
});
return (
<React.Fragment key={_get(hit, elementId)}>
<MenuItem
Expand Down
17 changes: 0 additions & 17 deletions src/components/fields/Connector/Settings.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
import { lazy, Suspense, useState } from "react";
import _get from "lodash/get";
import stringify from "json-stable-stringify-without-jsonify";

import {
Stepper,
Step,
StepButton,
StepContent,
Stack,
Grid,
Switch,
TextField,
FormControl,
FormLabel,
FormControlLabel,
RadioGroup,
Radio,
Typography,
InputLabel,
Link,
Checkbox,
FormHelperText,
Fab,
} from "@mui/material";

import SteppedAccordion from "@src/components/SteppedAccordion";
Expand All @@ -31,9 +18,7 @@ import InlineOpenInNewIcon from "@src/components/InlineOpenInNewIcon";
/* eslint-disable import/no-webpack-loader-syntax */
import connectorDefs from "!!raw-loader!./connector.d.ts";

import { useProjectContext } from "@src/contexts/ProjectContext";
import { WIKI_LINKS } from "@src/constants/externalLinks";
import { useAppContext } from "@src/contexts/AppContext";
import { baseFunction } from "./utils";

//import typeDefs from "!!raw-loader!./types.d.ts";
Expand All @@ -60,7 +45,6 @@ const diagnosticsOptions = {
};

export default function Settings({ config, onChange }) {
const { projectId } = useAppContext();
return (
<>
<div>
Expand All @@ -80,7 +64,6 @@ export default function Settings({ config, onChange }) {
/>
</div>
<FormControl>
{/* <InputLabel variant="filled">Primary Key</InputLabel> */}
<TextField
id="elementId"
label="ID"
Expand Down

0 comments on commit 97076b6

Please sign in to comment.