refac: swtich
This commit is contained in:
1 parent
ed6449d35f
commit
54c05ac6e0
1 file changed
+7
-1
@@ -15,7 +15,13 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content={tooltip ? (state ? $i18n.t('Enabled') : $i18n.t('Disabled')) : ''}
|
content={typeof tooltip === 'string'
|
||||||
|
? tooltip
|
||||||
|
: typeof tooltip === 'boolean' && tooltip
|
||||||
|
? state
|
||||||
|
? $i18n.t('Enabled')
|
||||||
|
: $i18n.t('Disabled')
|
||||||
|
: ''}
|
||||||
placement="top"
|
placement="top"
|
||||||
>
|
>
|
||||||
<Switch.Root
|
<Switch.Root
|
||||||
|
|||||||
Reference in new issue
Block a user