From 124ef993d9beecc06c0c281c4e431bde84d2014b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20Kadir=20Ak=C4=B1n?= Date: Sun, 11 Nov 2018 01:32:44 +0300 Subject: [PATCH] feat: bump useWait --- docs/useWait.md | 4 ++-- package.json | 2 +- src/__stories__/useWait.story.tsx | 2 +- src/useWait.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/useWait.md b/docs/useWait.md index 1035d182..779d7590 100644 --- a/docs/useWait.md +++ b/docs/useWait.md @@ -1,6 +1,6 @@ # `useWait` -React waiting management hook. +`useWait` is a React Hook helps to manage multiple loading states on the page without any conflict. It's based on a very simple idea that manages an `Array` of multiple loading states. The built-in `Wait` component listens its registered loader and immediately become loading state. ## Usage @@ -15,7 +15,7 @@ function UserCreateButton() { onClick={() => startWaiting("creating user")} disabled={isWaiting("creating user")} > - Creating user!}> + Creating user!}> Create User diff --git a/package.json b/package.json index ba54f8ea..874f2572 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "ts-easing": "^0.1.0", "use-onclickoutside": "^0.1.0", "use-callbag": "^0.1.2", - "use-wait": "^0.0.3" + "react-wait": "^0.3.0" }, "devDependencies": { "@storybook/react": "^3.4.11", diff --git a/src/__stories__/useWait.story.tsx b/src/__stories__/useWait.story.tsx index 1358ac5c..4ee807a7 100644 --- a/src/__stories__/useWait.story.tsx +++ b/src/__stories__/useWait.story.tsx @@ -23,7 +23,7 @@ const Demo = () => { return (
diff --git a/src/useWait.ts b/src/useWait.ts index 4551309c..ffa4c648 100644 --- a/src/useWait.ts +++ b/src/useWait.ts @@ -1,4 +1,4 @@ -import { Waiter, useWait } from 'use-wait' +import { Waiter, useWait } from 'react-wait' useWait.Waiter = Waiter;