This repository has been archived by the owner on Oct 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dialog/notification): use colorful buttons and add accept type …
…in dialog (#41) * use remove icon in danger and error * feat(dialog/notification): use colorful buttons and add accept type in dialog BREAKING CHANGE: remove `primary` options in dialog re #38
- Loading branch information
Showing
8 changed files
with
88 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export const typeMap = { | ||
confirm: { | ||
icon: 'question', | ||
btnType: 'primary' | ||
}, | ||
accept: { | ||
icon: 'checked-alt', | ||
btnType: 'accept' | ||
}, | ||
warning: { | ||
icon: 'warning', | ||
btnType: 'warning' | ||
}, | ||
danger: { | ||
icon: 'remove', | ||
btnType: 'danger' | ||
}, | ||
success: { | ||
icon: 'accept' | ||
}, | ||
info: { | ||
icon: 'info', | ||
btnType: 'primary' | ||
}, | ||
error: { | ||
icon: 'remove', | ||
btnType: 'danger' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters