diff --git a/dev/telegraphChangelog.js b/dev/telegraphChangelog.js index 07565aaf..dee1f15d 100644 --- a/dev/telegraphChangelog.js +++ b/dev/telegraphChangelog.js @@ -1,3 +1,4 @@ +/* eslint-disable max-len */ const Telegraph = require('telegraph-node'); const { JSDOM } = require('jsdom'); const { gitlogPromise } = require('gitlog'); @@ -16,10 +17,12 @@ const gitOptions = { const pageTemplate = ` \ +

Commits since ${version}

\ -
This list is automatically updated when a new commit pushed to the beta repo
\ +

This list is automatically updated when a new commit pushed to the beta repo

\ \ -
Last updated ${new Date().toLocaleDateString('en-CA')}
\ + \ + \ `.trim(); diff --git a/src/components/left/main/LeftMainHeader.tsx b/src/components/left/main/LeftMainHeader.tsx index e2b007ae..2321bd54 100644 --- a/src/components/left/main/LeftMainHeader.tsx +++ b/src/components/left/main/LeftMainHeader.tsx @@ -11,8 +11,6 @@ import { ANIMATION_LEVEL_MAX, APP_NAME, APP_VERSION, BETA_CHANGELOG_URL, - BETA_DISCUSSION_CHAT_EN, - BETA_DISCUSSION_CHAT_RU, DEBUG, FEEDBACK_URL, IS_BETA, @@ -211,14 +209,6 @@ const LeftMainHeader: FC = ({ window.open(BETA_CHANGELOG_URL, '_blank', 'noopener'); }, []); - const handleRuDiscussionClick = useCallback(() => { - openChatByUsername({ username: BETA_DISCUSSION_CHAT_RU }); - }, [openChatByUsername]); - - const handleEnDiscussionClick = useCallback(() => { - openChatByUsername({ username: BETA_DISCUSSION_CHAT_EN }); - }, [openChatByUsername]); - const handleSwitchToWebK = useCallback(() => { setPermanentWebVersion('K'); clearWebsync(); @@ -315,26 +305,12 @@ const LeftMainHeader: FC = ({ Report Bug {IS_BETA && ( - <> - - Beta Changelog - - - Beta Discussion (ru) - - - Beta Discussion (en) - - + + Beta Changelog + )} {withOtherVersions && ( <> diff --git a/src/config.ts b/src/config.ts index 7bf09cd7..faf1c4e8 100644 --- a/src/config.ts +++ b/src/config.ts @@ -10,8 +10,6 @@ export const IS_PERF = process.env.APP_ENV === 'perf'; export const IS_BETA = process.env.APP_ENV === 'staging'; export const BETA_CHANGELOG_URL = 'https://telegra.ph/WebZ-Beta-04-01'; -export const BETA_DISCUSSION_CHAT_RU = 'webzcommentsru'; -export const BETA_DISCUSSION_CHAT_EN = 'webzchat'; export const DEBUG_ALERT_MSG = 'Shoot!\nSomething went wrong, please see the error details in Dev Tools Console.'; export const DEBUG_GRAMJS = false;