feat: add Icons plugin
* Change existing icons to React wrapper components * Add `icons` plugin to expose Icon components to plugin system * Create components that re-export Lock and Unlock components so they can be changed separately in Authorise top button and Authorise operation summary button * Add new Lock and Unlock icons to `auth` plugin --------- Co-authored-by: Vladimír Gorej <vladimir.gorej@smartbear.com>
This commit is contained in:
24
src/core/plugins/icons/index.js
Normal file
24
src/core/plugins/icons/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @prettier
|
||||
*/
|
||||
import ArrowUpIcon from "./components/arrow-up"
|
||||
import ArrowDownIcon from "./components/arrow-down"
|
||||
import ArrowIcon from "./components/arrow"
|
||||
import CloseIcon from "./components/close"
|
||||
import CopyIcon from "./components/copy"
|
||||
import LockIcon from "./components/lock"
|
||||
import UnlockIcon from "./components/unlock"
|
||||
|
||||
const IconsPlugin = () => ({
|
||||
components: {
|
||||
ArrowUpIcon,
|
||||
ArrowDownIcon,
|
||||
ArrowIcon,
|
||||
CloseIcon,
|
||||
CopyIcon,
|
||||
LockIcon,
|
||||
UnlockIcon,
|
||||
}
|
||||
})
|
||||
|
||||
export default IconsPlugin
|
||||
Reference in New Issue
Block a user