Skip to content

Commit ae95416

Browse files
committed
footer link button added
1 parent e8d232d commit ae95416

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed
Lines changed: 3 additions & 0 deletions
Loading

src/Shared/Components/FeatureDescription/FeatureDescriptionModal.tsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { VisibleModal, noop } from '../../../Common'
1+
import { VisibleModal } from '../../../Common'
22
import { BUTTON_TEXT, IMAGE_VARIANT } from './constant'
33
import { FeatureDescriptionModalProps } from './types'
44
import './featureDescription.scss'
5+
import { ReactComponent as ArrowOutSquare } from '../../../Assets/Icon/ic-arrow-square-out.svg'
56

67
export const FeatureDescriptionModal = ({
78
image,
@@ -13,7 +14,7 @@ export const FeatureDescriptionModal = ({
1314
imageVariant,
1415
}: FeatureDescriptionModalProps) => {
1516
const renderDescriptionBody = () => (
16-
<div className="pl-20 pr-20 pt-16 pb-16">
17+
<div className="pl-20 pr-20 pt-16">
1718
<div className="flex left w-100 fs-16 fw-6">{title}</div>
1819
<img
1920
src={image}
@@ -26,16 +27,20 @@ export const FeatureDescriptionModal = ({
2627

2728
const renderFooter = () => (
2829
<div
29-
className={`flex right w-100 dc__align-right pt-16 dc__border-top-n1 pb-16 pl-20 pr-20 ${docLink ? 'dc__content-space' : 'right'}`}
30+
className={`flex right w-100 dc__align-right pt-16 dc__border-top-n1 pb-16 pl-20 pr-20 pt-6 pb-6 ${docLink ? 'dc__content-space' : 'right'}`}
3031
>
31-
{docLink && (
32-
<button className="cta flex h-36" type="submit" onClick={noop}>
33-
<a className="" href={docLink} target="_blank" rel="noreferrer">
34-
{BUTTON_TEXT.VIEW_DOCUMENTATION}
35-
</a>
36-
</button>
32+
{docLink.length > 0 && (
33+
<a
34+
className="flex dc__link en-2 bw-1 pl-8 pr-8 dc__gap-6 br-4 fw-6 lh-20"
35+
href={docLink}
36+
target="_blank"
37+
rel="noreferrer"
38+
>
39+
{BUTTON_TEXT.VIEW_DOCUMENTATION}
40+
<ArrowOutSquare className="icon-dim-16 ml-8 scb-5" />
41+
</a>
3742
)}
38-
<button className="cta flex h-36" type="submit" onClick={closeModal}>
43+
<button className="cta flex small" type="submit" onClick={closeModal}>
3944
{closeModalText}
4045
</button>
4146
</div>

src/Shared/Components/FeatureDescription/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface FeatureDescriptionModalProps {
77
renderDescriptionContent?: () => JSX.Element
88
closeModalText?: string
99
docLink?: string
10-
closeModal: () => void
10+
closeModal?: () => void
1111
imageVariant?: IMAGE_VARIANT
1212
}
1313

0 commit comments

Comments
 (0)