diff --git a/components/brave_new_tab_ui/components/default/footer/togetherTooltip/index.tsx b/components/brave_new_tab_ui/components/default/footer/togetherTooltip/index.tsx index f2a9ca9729df..812a5435f228 100644 --- a/components/brave_new_tab_ui/components/default/footer/togetherTooltip/index.tsx +++ b/components/brave_new_tab_ui/components/default/footer/togetherTooltip/index.tsx @@ -9,6 +9,7 @@ import TogetherIcon from './togetherIcon' import CloseIcon from './closeIcon' import { LinkButton } from '../../../outlineButton' import * as S from './style' +import { braveTalkWidgetUrl } from '../../../../constants/new_tab_ui' type Props = { onClose: () => any @@ -25,7 +26,7 @@ const TogetherTooltip: React.FunctionComponent = function (props) { {getLocale('togetherPromptDescription')} - + {getLocale('togetherPromptAction')} { shouldCreateCall = (event: any) => { event.preventDefault() - window.open(`https://together.brave.com/widget`, '_self', 'noopener') + window.open(braveTalkWidgetUrl, '_self', 'noopener') } render () { diff --git a/components/brave_new_tab_ui/constants/new_tab_ui.ts b/components/brave_new_tab_ui/constants/new_tab_ui.ts index 43156832adcf..cd3f9c9a3a01 100644 --- a/components/brave_new_tab_ui/constants/new_tab_ui.ts +++ b/components/brave_new_tab_ui/constants/new_tab_ui.ts @@ -6,3 +6,4 @@ // Sync this with kBraveMaxTopSitesNumber // in //brave/browser/ui/webui/new_tab_page/brave_new_tab_ui_unittest.cc export const MAX_GRID_SIZE = 12 +export const braveTalkWidgetUrl = 'https://talk.brave.com/widget'