Skip to content

Commit 6fb5fe6

Browse files
authored
fix: contact support font size and typo (#4869)
* fix: font size and typo fixed in overlay
1 parent 98f4f7a commit 6fb5fe6

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/pageLayout/containers/TreeNav.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Libraries
2-
import React, {FC, useContext, useEffect} from 'react'
2+
import React, {FC, useContext, useEffect, MouseEvent} from 'react'
33
import {Link, useLocation} from 'react-router-dom'
44
import {useSelector} from 'react-redux'
55
import {connect, ConnectedProps} from 'react-redux'
@@ -75,7 +75,10 @@ const TreeSidebar: FC<ReduxProps> = ({
7575
event(`helpBar.${link}.opened`, {}, {from: currentPage})
7676
}
7777

78-
const handleSelect = (): void => {
78+
const handleContactSupportClick = (
79+
evt: MouseEvent<HTMLAnchorElement>
80+
): void => {
81+
evt.preventDefault()
7982
const accountType = quartzMe?.accountType ?? 'free'
8083
const isPayGCustomer = accountType !== 'free'
8184

@@ -205,7 +208,9 @@ const TreeSidebar: FC<ReduxProps> = ({
205208
id="contactSupport"
206209
label="Contact Support"
207210
testID="nav-subitem-contact-support"
208-
onClick={handleSelect}
211+
linkElement={() => (
212+
<a href="#" onClick={handleContactSupportClick}></a>
213+
)}
209214
/>
210215
)}
211216
<TreeNav.SubHeading label="Community" />

src/support/components/FreeAccountSupportOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const FreeAccountSupportOverlay: FC<OwnProps> = () => {
5353
</p>
5454
<p>
5555
Contact support is currently only available for Usage-Based Plan and
56-
Annual customers. Please try our community resources below to recieve
56+
Annual customers. Please try our community resources below to receive
5757
help or file a feedback & questions form.
5858
</p>
5959
<List className="support-links" testID="free-account-links">

0 commit comments

Comments
 (0)