File tree 3 files changed +33
-28
lines changed
plugins/admin/components/Webhook
3 files changed +33
-28
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+
3
+ const ShortCodesIcon = ( ) => {
4
+ return (
5
+ < svg
6
+ xmlns = 'http://www.w3.org/2000/svg'
7
+ fill = 'none'
8
+ viewBox = '0 0 24 24'
9
+ strokeWidth = '1.5'
10
+ stroke = 'currentColor'
11
+ style = { { width : '18px' } }
12
+ >
13
+ < path
14
+ strokeLinecap = 'round'
15
+ strokeLinejoin = 'round'
16
+ d = 'M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5'
17
+ />
18
+ </ svg >
19
+ )
20
+ }
21
+
22
+ export default ShortCodesIcon
Original file line number Diff line number Diff line change @@ -59,4 +59,11 @@ export default {
59
59
marginTop : '0px' ,
60
60
marginRight : '-10px' ,
61
61
} ,
62
+ shortCodesWrapperStyles : {
63
+ position : 'absolute' ,
64
+ right : 0 ,
65
+ marginRight : '0.5rem' ,
66
+ top : '50%' ,
67
+ transform : 'translateY(-70%)' ,
68
+ }
62
69
}
Original file line number Diff line number Diff line change @@ -9,23 +9,8 @@ import { useTranslation } from 'react-i18next'
9
9
import { HelpOutline } from '@mui/icons-material'
10
10
import { Tooltip as ReactTooltip } from 'react-tooltip'
11
11
import PropTypes from 'prop-types'
12
-
13
- const Icon = ( ) => (
14
- < svg
15
- xmlns = 'http://www.w3.org/2000/svg'
16
- fill = 'none'
17
- viewBox = '0 0 24 24'
18
- strokeWidth = '1.5'
19
- stroke = 'currentColor'
20
- style = { { width : '18px' } }
21
- >
22
- < path
23
- strokeLinecap = 'round'
24
- strokeLinejoin = 'round'
25
- d = 'M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5'
26
- />
27
- </ svg >
28
- )
12
+ import applicationstyle from "Routes/Apps/Gluu/styles/applicationstyle"
13
+ import ShortCodesIcon from 'Components/SVG/menu/ShortCodesIcon'
29
14
30
15
export default function ShortcodePopover ( {
31
16
codes,
@@ -44,24 +29,15 @@ export default function ShortcodePopover({
44
29
const open = Boolean ( anchorEl )
45
30
const id = open ? 'simple-popover' : undefined
46
31
47
- const wrapperStyles = {
48
- position : 'absolute' ,
49
- right : 0 ,
50
- marginRight : '0.5rem' ,
51
- top : '50%' ,
52
- transform : 'translateY(-70%)' ,
53
- ...buttonWrapperStyles ,
54
- }
55
-
56
32
return (
57
- < div style = { wrapperStyles } >
33
+ < div style = { { ... applicationstyle . shortCodesWrapperStyles , buttonWrapperStyles } } >
58
34
< Button
59
35
aria-describedby = { id }
60
36
variant = 'text'
61
37
sx = { { border : 0 } }
62
38
onClick = { handleClick }
63
39
>
64
- < Icon />
40
+ < ShortCodesIcon />
65
41
</ Button >
66
42
< Popover
67
43
id = { id }
You can’t perform that action at this time.
0 commit comments