1
0
Fork 0
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:
Richard Wei 2022-08-01 14:59:00 +12:00 committed by GitHub
parent 11dffdee9a
commit 11c778cfeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 5 deletions

View file

@ -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(