Browse
For agents
About
GiveWP – Donation Plugin and Fundraising Platform
/
4.18.0
GiveWP – Donation Plugin and Fundraising Platform
v4.18.0
Switch version
4.18.0
4.17.0
4.16.9
4.16.8.1
4.16.8
4.16.7.2
4.16.7.1
4.16.7
4.16.6.1
4.16.6
4.16.5.1
4.16.5
4.16.4
4.16.3
4.16.2
4.16.1
4.16.0
4.15.5
4.15.4
4.15.3
4.15.2
4.15.1
4.15.0
2.3.0
2.3.1
All 257 releases
Overview
Code
give
/
src
/
Campaigns
/
Blocks
/
CampaignForm
/
resources
/
Icon.tsx
Icon.tsx
in GiveWP – Donation Plugin and Fundraising Platform 4.18.0, at src/Campaigns/Blocks/CampaignForm/resources/Icon.tsx
24 lines
853 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
/**
2
*
@
unreleasaed
3
*/
4
const
colorMap
=
{
5
white
:
'
#fff
'
,
6
grey
:
'
#555d66
'
,
7
give
:
'
#66bb6a
'
,
8
}
;
9
10
/**
11
*
@
unreleasaed
12
*/
13
export
default
function
GiveIcon
(
{
color
=
'
grey
'
,
size
=
'
24px
'
,
...
rest
}
)
{
14
return
(
15
<
svg
xmlns
=
"
http://www.w3.org/2000/svg
"
viewBox
=
"
0 0 157.2 157.2
"
width
=
{
size
}
height
=
{
size
}
{
...
rest
}
>
16
<
circle
fill
=
{
colorMap
[
color
]
}
cx
=
"
78.6
"
cy
=
"
78.6
"
r
=
"
78.6
"
/>
17
<
path
18
fill
=
"
#fff
"
19
d
=
"
M89.8 84.2c.3.7 1 1.3 1 1.3 13.9 1.7 33.6-.2 48.6-2.2-8.6 18.5-24 30.8-38.1 30.8-26.5 0-46.9-32.1-46.9-32.1 8.2-7.2 21.7-30.8 41.2-30.8s28 10.7 28 10.7l2.2-3.5s-9.1-31.9-34.9-31.9-53.2 42.3-69.2 52c0 0 22 52.2 70.2 52.2 40.4 0 50.6-38.6 52.5-48.2 5.4-.8 9.9-1.6 12.8-2.1 1-2.2 2.1-6.1 1.3-11.3-16.1 6.2-40.5 13.2-69.1 13.2-.1 0 0 1 .4 1.9z
"
20
/>
21
</
svg
>
22
)
;
23
}
24