update Reference field icon

This commit is contained in:
Sidney Alcantara
2022-06-02 14:13:18 +10:00
parent effe08ec5c
commit 21cfc7565a
6 changed files with 17 additions and 12 deletions

View File

@@ -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: <SingleSelectIcon />,
icon: <FileLinkOutline />,
description: "Firestore document reference",
TableCell: withBasicCell(BasicCell),
TableEditor: EditorCell,

View File

@@ -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,

View File

@@ -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",

View File

@@ -8,11 +8,11 @@ import reportWebVitals from "./reportWebVitals";
const container = document.getElementById("root")!;
const root = createRoot(container);
root.render(
<StrictMode>
<Providers>
<App />
</Providers>
</StrictMode>
// <StrictMode>
<Providers>
<App />
</Providers>
// </StrictMode>
);
// If you want to start measuring performance in your app, pass a function