# tcd-lesson-subscription

> ## Prerequisites

Latest version **0.5.2** (published 2022-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install tcd-lesson-subscription
pnpm add tcd-lesson-subscription
yarn add tcd-lesson-subscription
bun add tcd-lesson-subscription
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.2 |
| Published | 2022-02-17 |
| First published | 2021-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 15 |
| Unpacked size | 3.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mukarram Ishaq |
| Maintainers | mukarramishaq |

## Links

- npm: https://www.npmjs.com/package/tcd-lesson-subscription
- npm.io page: https://npm.io/package/tcd-lesson-subscription

## Dependencies (15)

- [yup](https://npm.io/package/yup.md) ^0.32.9
- [formik](https://npm.io/package/formik.md) ^2.2.9
- [cpy-cli](https://npm.io/package/cpy-cli.md) ^3.1.1
- [cssnano](https://npm.io/package/cssnano.md) ^5.0.8
- [bootstrap](https://npm.io/package/bootstrap.md) ^5.1.0
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^10.3.3
- [@emotion/react](https://npm.io/package/@emotion/react.md) ^11.4.1
- [react-spinners](https://npm.io/package/react-spinners.md) ^0.11.0
- [@material-ui/core](https://npm.io/package/@material-ui/core.md) ^4.12.3
- [@stripe/stripe-js](https://npm.io/package/@stripe/stripe-js.md) 1.14.0
- [@material-ui/icons](https://npm.io/package/@material-ui/icons.md) ^4.11.2
- [rollup-plugin-postcss](https://npm.io/package/rollup-plugin-postcss.md) ^4.0.1
- [use-stepwise-execution](https://npm.io/package/use-stepwise-execution.md) ^0.2.0
- [@stripe/react-stripe-js](https://npm.io/package/@stripe/react-stripe-js.md) ^1.4.1
- [rollup-plugin-static-files](https://npm.io/package/rollup-plugin-static-files.md) ^0.2.0

## Recent versions

- 0.5.2 (latest) — 2022-02-17
- 0.5.0 — 2021-09-24
- 0.4.1 — 2021-09-13
- 0.4.0 — 2021-09-13
- 0.3.2 — 2021-09-13
- 0.3.1 — 2021-09-10
- 0.3.0 — 2021-09-10
- 0.2.7 — 2021-09-03
- 0.2.6 — 2021-09-03
- 0.2.5 — 2021-09-02
- 0.2.4 — 2021-09-02
- 0.2.3 — 2021-09-01
- 0.2.2 — 2021-09-01
- 0.2.1 — 2021-09-01
- 0.2.0 — 2021-09-01

## README

# TCD Lesson Subscription

## Prerequisites

1. Following libraries must be installed for this component to work properly. Use `yarn` or `npm` to install these libraries.
   1. > firebase@8.6.5
   2. > @stripe/react-stripe-js
   3. > @stripe/stripe-js

2. Configure the `firebase` and `stripe` objects with proper credentials. For your convenience, I have put a sample configured files for both `firebase` and `stripe` in the `example/config` folder.

## How to setup?

1. Use the following command to add this library

```bash
yarn add tcd-lesson-subscription # npm install --save tcd-lesson-subscription
```

2. Import the `LessonSubscription` component and use it like this:

```tsx
import { LessonSubscription } from "tcd-lesson-subscription";

<LessonSubscription
  auth={firebase.auth()}
  functions={firebase.functions()}
  stripe={stripe}
/>
```

## Example:
```tsx
import React from "react";
import { LessonSubscription } from "tcd-lesson-subscription";
import firebase from "./config/firebase";
import { stripe } from "./config/stripe";

export function Subscription(props: any) {
  return (
    <LessonSubscription
      auth={firebase.auth()}
      functions={firebase.functions()}
      stripe={stripe}
    />
  );
}
```

---
_Source: https://npm.io/package/tcd-lesson-subscription · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
