mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
import react2angular for used by icon, tooltip and tableheader (#7391)
This commit is contained in:
parent
11dffdee9a
commit
11c778cfeb
3 changed files with 52 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
|||
import angular from 'angular';
|
||||
import { react2angular } from 'react2angular';
|
||||
|
||||
import { r2a } from '@/react-tools/react2angular';
|
||||
import { Icon } from '@/react/components/Icon';
|
||||
|
@ -24,7 +25,10 @@ export const componentsModule = angular
|
|||
'tagSelector',
|
||||
r2a(TagSelector, ['allowCreate', 'onChange', 'value'])
|
||||
)
|
||||
.component('portainerTooltip', r2a(Tooltip, ['message', 'position']))
|
||||
.component(
|
||||
'portainerTooltip',
|
||||
react2angular(Tooltip, ['message', 'position'])
|
||||
)
|
||||
.component('fileUploadField', fileUploadField)
|
||||
.component('porSwitchField', switchField)
|
||||
.component(
|
||||
|
@ -34,7 +38,7 @@ export const componentsModule = angular
|
|||
.component('rdLoading', r2a(Loading, []))
|
||||
.component(
|
||||
'tableColumnHeader',
|
||||
r2a(TableColumnHeaderAngular, [
|
||||
react2angular(TableColumnHeaderAngular, [
|
||||
'colTitle',
|
||||
'canSort',
|
||||
'isSorted',
|
||||
|
@ -48,7 +52,7 @@ export const componentsModule = angular
|
|||
)
|
||||
.component(
|
||||
'prIcon',
|
||||
r2a(Icon, ['className', 'feather', 'icon', 'mode', 'size'])
|
||||
react2angular(Icon, ['className', 'feather', 'icon', 'mode', 'size'])
|
||||
)
|
||||
.component('reactQueryDevTools', r2a(ReactQueryDevtoolsWrapper, []))
|
||||
.component(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue