diff --git a/package.json b/package.json index ed563663..71a417db 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "jszip": "^3.10.0", "lodash-es": "^4.17.21", "match-sorter": "^6.3.1", - "mdi-material-ui": "^7.2.0", + "mdi-material-ui": "^7.3.0", "monaco-editor-auto-typings": "^0.4.0", "notistack": "^2.0.4", "path-browserify": "^1.0.1", diff --git a/src/components/fields/Reference/index.tsx b/src/components/fields/Reference/index.tsx index 9640e9e6..d701350e 100644 --- a/src/components/fields/Reference/index.tsx +++ b/src/components/fields/Reference/index.tsx @@ -1,7 +1,7 @@ import { lazy } from "react"; import { IFieldConfig, FieldType } from "@src/components/fields/types"; -import SingleSelectIcon from "@src/assets/icons/SingleSelect"; +import { FileLinkOutline } from "mdi-material-ui"; //import InlineCell from "./InlineCell"; import BasicCell from "./BasicCell"; import { filterOperators } from "@src/components/fields/ShortText/Filter"; @@ -27,7 +27,7 @@ export const config: IFieldConfig = { dataType: "reference", initialValue: null, initializable: true, - icon: , + icon: , description: "Firestore document reference", TableCell: withBasicCell(BasicCell), TableEditor: EditorCell, diff --git a/src/components/fields/index.ts b/src/components/fields/index.ts index 1b49941c..62ad1358 100644 --- a/src/components/fields/index.ts +++ b/src/components/fields/index.ts @@ -25,9 +25,9 @@ import Image_ from "./Image"; import File_ from "./File"; import Connector from "./Connector"; import SubTable from "./SubTable"; +import Reference from "./Reference"; import ConnectTable from "./ConnectTable"; import ConnectService from "./ConnectService"; -import Reference from "./Reference"; import Json from "./Json"; import Code from "./Code"; import Action from "./Action"; @@ -71,9 +71,9 @@ export const FIELDS: IFieldConfig[] = [ /** CONNECTION */ Connector, SubTable, + Reference, ConnectTable, ConnectService, - Reference, /** CODE */ Json, Code, diff --git a/src/constants/fields.ts b/src/constants/fields.ts index d0ab8a2d..b797a225 100644 --- a/src/constants/fields.ts +++ b/src/constants/fields.ts @@ -25,11 +25,11 @@ export enum FieldType { image = "IMAGE", file = "FILE", // CONNECTION - subTable = "SUB_TABLE", connector = "CONNECTOR", + subTable = "SUB_TABLE", + reference = "REFERENCE", connectTable = "DOCUMENT_SELECT", connectService = "SERVICE_SELECT", - reference = "REFERENCE", // CODE json = "JSON", code = "CODE", diff --git a/src/index.tsx b/src/index.tsx index 5d545f47..f4d7b2c9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -8,11 +8,11 @@ import reportWebVitals from "./reportWebVitals"; const container = document.getElementById("root")!; const root = createRoot(container); root.render( - - - - - + // + + + + // ); // If you want to start measuring performance in your app, pass a function diff --git a/yarn.lock b/yarn.lock index a97b2b51..dab0d8c5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9025,6 +9025,11 @@ mdi-material-ui@^7.2.0: resolved "https://registry.yarnpkg.com/mdi-material-ui/-/mdi-material-ui-7.2.0.tgz#e4746b123fd3a438b1cde39eb44329a4c761162d" integrity sha512-tJnT4fY+gJmlq/wt4GYCV5qezOs/cuSysg6N3KRkl2/8dSpyZsL/P5lN4UWZ2ayViwhoRUHns/FCKFnMngJd0g== +mdi-material-ui@^7.3.0: + version "7.3.0" + resolved "https://registry.yarnpkg.com/mdi-material-ui/-/mdi-material-ui-7.3.0.tgz#db3ed681d35ae12c37fb1c95bcfe679a1be80c0b" + integrity sha512-BJ4JF+LlO/aYcOg9wrgbzRiInyRH6padgfBdJpoPNc3CoZDaik9ARTP3PWzgMjRSQQZ2KvxtFVpOHDkHfrc2Fw== + mdn-data@2.0.14: version "2.0.14" resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"