Added Close button to Recommendations modal

refs https://github.com/TryGhost/Product/issues/3824
This commit is contained in:
Djordje Vlaisavljevic 2023-09-05 16:02:12 +01:00
parent 76778a9dd8
commit 9e1b11f26e

View File

@ -1,5 +1,6 @@
import AppContext from '../../AppContext';
import {useContext, useState, useEffect} from 'react';
import CloseButton from '../common/CloseButton';
export const RecommendationsPageStyles = `
.gh-portal-recommendation-item .gh-portal-list-detail {
@ -94,6 +95,7 @@ const RecommendationsPage = () => {
return (
<div className='gh-portal-content with-footer'>
<CloseButton />
<div className="gh-portal-recommendations-header">
{icon && <img className="gh-portal-signup-logo" alt={title} src={icon} />}
{/* TODO: Make heading dynamic so it's "Youre subscribed!" when it's during the signup flow, and "Recommendations" when triggered elsewhere */}