# @time-with/modal

> React redux-driven Modal system

Latest version **1.2.0** (published 2019-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @time-with/modal
pnpm add @time-with/modal
yarn add @time-with/modal
bun add @time-with/modal
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2019-09-26 |
| First published | 2019-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 51.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Antonio Brandao |
| Maintainers | agouil, antoniobrandao |

## Links

- npm: https://www.npmjs.com/package/@time-with/modal
- npm.io page: https://npm.io/package/@time-with/modal

## Recent versions

- 1.2.0 (latest) — 2019-09-26
- 1.1.2 — 2019-03-15
- 1.1.14 — 2019-03-04
- 1.1.13 — 2019-03-04
- 1.1.12 — 2019-03-04
- 1.1.11 — 2019-03-04
- 1.1.1 — 2019-03-04
- 1.1.0 — 2019-03-04
- 1.0.12 — 2019-03-04
- 1.0.11 — 2019-03-01
- 1.0.10 — 2019-03-01
- 1.0.8 — 2019-03-01
- 1.0.7 — 2019-03-01
- 1.0.5 — 2019-03-01
- 1.0.4 — 2019-03-01
- … 4 more at https://npm.io/package/@time-with/modal/versions

## README

# Timewith Modal

Timewith Modal

## Install

With [npm](http://npmjs.org) do:

```bash
$ npm install @time-with/modal
or
$ yarn add @time-with/modal
```

## Setup

Add the module to the root Router of the React layout

    import TWModal from '@time-with/modal'

    render() {
      return (
        <Router>
          <div id='layout-root'>
            <TWModal />
            // ...

Import the reducer to your reducers combiner
    
    import { modalReducer } from '@time-with/modal';

    export default combineReducers({
      modalReducer,
      ...other reducers
    });

## Usage

    import { showModal } from '@time-with/modal';

    @connect(
      null,
      dispatch => ({
        actions: bindActionCreators({
          showModal,
        }, dispatch)
      })
    )
    
    this.props.actions.showModal({
      title: 'Are you sure?',
      description: 'By deleting your location, all associated fees and availability slots will be lost.',
      showButtonA: true,
      showButtonB: true,
      buttonACustomHandler: this.someHandler,
      buttonACustomHandlerParameters: someParameter,
    });

## License

MIT

---
_Source: https://npm.io/package/@time-with/modal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
