Skip to content

Commit

Permalink
Merge pull request #241 from douxpang/fix/toast-loading-icon
Browse files Browse the repository at this point in the history
Fix/toast loading icon
  • Loading branch information
Dengzygx committed Jul 19, 2022
2 parents 5d76072 + 0bbc7fe commit 4967cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toast/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Toast.clear = () => {
return;
}
Toast[type] = (options: TdToastProps | string) => {
let props = { message: '', type } as unknown as TdToastProps;
let props = { message: '', theme: type } as unknown as TdToastProps;

if (typeof options === 'string') {
props.message = options;
Expand Down

0 comments on commit 4967cd1

Please sign in to comment.