From 9b2e28883e6a5f0778d54731ff8b839a9e84c7f7 Mon Sep 17 00:00:00 2001 From: elijahbenizzy Date: Wed, 24 Apr 2024 15:16:52 -0700 Subject: [PATCH] fixes build warnings + other misc PR changes --- docs/concepts/ui.rst | 4 +--- ui/frontend/src/components/common/Dropdown.tsx | 6 +++--- ui/frontend/src/components/dashboard/Project/Projects.tsx | 8 +++++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/concepts/ui.rst b/docs/concepts/ui.rst index b8e923734..d08542dee 100644 --- a/docs/concepts/ui.rst +++ b/docs/concepts/ui.rst @@ -61,9 +61,7 @@ This will do the following: 3. Start the backend server 4. Start the frontend server -This takes a bit of time! So be patient. The server will be running on port 8242 -- in the logs you'll see something like this: - -Then navigate to ``http://localhost:8242`` in your browser, and enter your email (this will be the username used within the app). +This takes a bit of time! So be patient. The server will be running on port 8242. Then navigate to ``http://localhost:8242`` in your browser, and enter your email (this will be the username used within the app). Building the Docker Images locally __________________________________ diff --git a/ui/frontend/src/components/common/Dropdown.tsx b/ui/frontend/src/components/common/Dropdown.tsx index 51d0a1fc4..2c9f0db59 100644 --- a/ui/frontend/src/components/common/Dropdown.tsx +++ b/ui/frontend/src/components/common/Dropdown.tsx @@ -1,21 +1,21 @@ import { Listbox, Transition } from "@headlessui/react"; import { CheckIcon, ChevronUpDownIcon } from "@heroicons/react/20/solid"; import React, { Fragment } from "react"; -import { AiFillQuestionCircle } from "react-icons/ai"; import { IconType } from "react-icons/lib"; import { classNames } from "../../utils"; import { HelpTooltip } from "./HelpTooltip"; type Selectable = { name: string; + // eslint-disable-next-line value: any; icon?: IconType; }; export const DropdownSelector: React.FC<{ choices: Selectable[]; - setCurrentChoice: (choice: any) => void; - currentChoice: any | null; + setCurrentChoice: (choice: Selectable) => void; + currentChoice: Selectable | null; title: string; description?: string; }> = (props) => { diff --git a/ui/frontend/src/components/dashboard/Project/Projects.tsx b/ui/frontend/src/components/dashboard/Project/Projects.tsx index 86210bdf5..6fe24cd1f 100644 --- a/ui/frontend/src/components/dashboard/Project/Projects.tsx +++ b/ui/frontend/src/components/dashboard/Project/Projects.tsx @@ -124,7 +124,7 @@ export const ProjectCreateOrEditForm = (props: ProjectCreateFormProps) => { ? "Project description is required" : undefined, selectedWriteSharingEntities.length === 0 - ? "Write access is required by at least one user/team" + ? "Write access is required by at least one user (or team, if using the enterprise version)" : undefined, ].filter((item) => item !== undefined); @@ -288,7 +288,8 @@ export const ProjectCreateOrEditForm = (props: ProjectCreateFormProps) => { Read Access

- Enter emails or select teams you are a part of. + Enter emails + {localMode ? " (reach out if you want team/organization-level ACLs)" : " or select teams you are part of."}.

{ Write Access

- Enter emails or select teams you are a part of. + Enter emails + {localMode ? " (reach out if you want team/organization-level ACLs)" : " or select teams you are part of."}.