removed chat with us for self hosting since we killed github discussions (#5767)
This commit is contained in:
parent
91e5a5a911
commit
2dba1558e6
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user