added subscribe button

This commit is contained in:
Abhinav-grd 2021-03-09 17:08:21 +05:30
parent ae3e33730e
commit 97ab16da57
2 changed files with 12 additions and 2 deletions

View file

@ -23,7 +23,8 @@ import {
} from 'services/collectionService';
import constants from 'utils/strings/constants';
import AlertBanner from './components/AlertBanner';
import { Alert } from 'react-bootstrap';
import { Alert, Button } from 'react-bootstrap';
import { buySubscription } from 'services/subscriptionService';
const DATE_CONTAINER_HEIGHT = 45;
const IMAGE_CONTAINER_HEIGHT = 200;
@ -326,7 +327,15 @@ export default function Gallery(props) {
</div>
)}
<AlertBanner bannerErrorCode={bannerErrorCode} />
<Button
id="checkout"
variant="primary"
size="lg"
block
onClick={buySubscription}
>
{constants.SUBSCRIBE}
</Button>
<Collections
collections={collections}
selected={Number(router.query.collection)}

View file

@ -88,6 +88,7 @@ const englishConstants = {
LOGOUT: 'logout',
LOGOUT_WARNING: 'sure you want to logout?',
CANCEL: 'cancel',
SUBSCRIBE: 'subscribe',
};
export default englishConstants;