Skip to content

Commit

Permalink
feat(usetoast): useToast add error type & update qr
Browse files Browse the repository at this point in the history
  • Loading branch information
innocces committed Mar 21, 2022
1 parent 3a2b11d commit 13df359
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/hooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ $ yarn app:dev:h5

### WeChat

<img src="https://cdn.jsdelivr.net/gh/innocces/DrawingBed/2022-02-19/1645256160636-qrcode.png" alt="wechat code" width="300"/>
<img src="https://cdn.jsdelivr.net/gh/innocces/DrawingBed/2022-03-21/1647870789124-qrcode.png" alt="wechat code" width="300"/>

> 若失效可点击[Welcome to discuss in wechat](https://github.com/innocces/taro-hooks/issues/12)获取最新二维码
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/src/useClipboardData/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getClipboardData, setClipboardData } from '@tarojs/taro';
import { useCallback, useEffect, useState } from 'react';
import { useCallback, useState } from 'react';

export type setClipboard = (text: any) => Promise<any>;
export type getClipboard = () => Promise<any>;
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/src/useToast/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useCallback, useEffect, useRef } from 'react';
export interface ToastOption {
title: string;
duration?: number;
icon?: 'success' | 'loading' | 'none';
icon?: 'success' | 'loading' | 'none' | 'error';
image?: string;
mask?: boolean;
}
Expand Down

1 comment on commit 13df359

@vercel
Copy link

@vercel vercel bot commented on 13df359 Mar 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

taro-hooks – ./

taro-hooks-innocces.vercel.app
taro-hooks-git-main-innocces.vercel.app
taro-hooks-theta.vercel.app

Please sign in to comment.