removed chat with us for self hosting since we killed github discussions (#5767)

This commit is contained in:
Nikhil Nandagopal 2021-07-10 15:31:53 +05:30 committed by GitHub
parent 91e5a5a911
commit 2dba1558e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 12 deletions

View File

@ -320,7 +320,7 @@ type HelpItem = {
icon: React.ReactNode;
};
const HELP_MENU_ITEMS: HelpItem[] = [
let HELP_MENU_ITEMS: HelpItem[] = [
{
icon: <StyledDocumentIcon color="#181F24" height={14} width={11.2} />,
label: "Documentation",
@ -331,24 +331,20 @@ const HELP_MENU_ITEMS: HelpItem[] = [
label: "Report a bug",
link: "https://github.com/appsmithorg/appsmith/issues/new/choose",
},
{
icon: <StyledChatIcon color="#fff" height={14} width={11.2} />,
label: "Chat with us",
link: "https://github.com/appsmithorg/appsmith/discussions",
},
{
icon: <StyledDiscordIcon height={16} width={16} />,
label: "Join our Discord",
link: "https://discord.gg/rBTTVJp",
},
];
if (cloudHosting) {
HELP_MENU_ITEMS[2] = {
{
icon: <StyledChatIcon color="#fff" height={14} width={11.2} />,
label: "Chat with us",
id: "intercom-trigger",
};
},
];
if (!cloudHosting) {
HELP_MENU_ITEMS = HELP_MENU_ITEMS.slice(0, -1);
}
class DocumentationSearch extends React.Component<Props, State> {

View File

@ -6,7 +6,7 @@ import { SEARCH_ITEM_TYPES } from "./utils";
import { get } from "lodash";
const recentEntitiesSelector = (state: AppState) =>
state.ui.globalSearch.recentEntities;
state.ui.globalSearch.recentEntities || [];
const useResentEntities = () => {
const widgetsMap = useSelector(getAllWidgetsMap);