Switch to png icons
After Width: | Height: | Size: 36 KiB |
|
@ -6,7 +6,9 @@
|
|||
width="115"
|
||||
height="115"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#">
|
||||
<defs
|
||||
id="defs2">
|
||||
<style
|
||||
|
@ -2375,4 +2377,23 @@
|
|||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata1">
|
||||
<rdf:RDF>
|
||||
<cc:License
|
||||
rdf:about="http://creativecommons.org/publicdomain/zero/1.0/">
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||
</cc:License>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<cc:license
|
||||
rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 25 KiB |
|
@ -5,30 +5,10 @@
|
|||
id="svg108"
|
||||
width="115"
|
||||
height="115"
|
||||
sodipodi:docname="coin-stack.svg"
|
||||
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:zoom="2.8458425"
|
||||
inkscape:cx="12.650033"
|
||||
inkscape:cy="73.089077"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1011"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="32"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g108" />
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#">
|
||||
<defs
|
||||
id="defs1">
|
||||
<style
|
||||
|
@ -741,4 +721,23 @@
|
|||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata1">
|
||||
<rdf:RDF>
|
||||
<cc:License
|
||||
rdf:about="http://creativecommons.org/publicdomain/zero/1.0/">
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||
</cc:License>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<cc:license
|
||||
rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 19 KiB |
|
@ -6,7 +6,9 @@
|
|||
width="115"
|
||||
height="115"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#">
|
||||
<defs
|
||||
id="defs1">
|
||||
<style
|
||||
|
@ -318,4 +320,23 @@
|
|||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata1">
|
||||
<rdf:RDF>
|
||||
<cc:License
|
||||
rdf:about="http://creativecommons.org/publicdomain/zero/1.0/">
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||
</cc:License>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<cc:license
|
||||
rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 27 KiB |
|
@ -6,7 +6,9 @@
|
|||
width="115"
|
||||
height="115"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#">
|
||||
<defs
|
||||
id="defs1">
|
||||
<style
|
||||
|
@ -334,4 +336,23 @@
|
|||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata1">
|
||||
<rdf:RDF>
|
||||
<cc:License
|
||||
rdf:about="http://creativecommons.org/publicdomain/zero/1.0/">
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||
</cc:License>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<cc:license
|
||||
rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 111 KiB |
|
@ -6,7 +6,9 @@
|
|||
width="165.70351"
|
||||
height="130.29999"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#">
|
||||
<defs
|
||||
id="defs1">
|
||||
<style
|
||||
|
@ -4356,4 +4358,23 @@
|
|||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata1">
|
||||
<rdf:RDF>
|
||||
<cc:License
|
||||
rdf:about="http://creativecommons.org/publicdomain/zero/1.0/">
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||
</cc:License>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<cc:license
|
||||
rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 142 KiB |
|
@ -4,11 +4,11 @@ import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|||
|
||||
import { zap } from 'soapbox/actions/interactions';
|
||||
import { openModal, closeModal } from 'soapbox/actions/modals';
|
||||
import chestIcon from 'soapbox/assets/icons/chest.svg';
|
||||
import coinStack from 'soapbox/assets/icons/coin-stack.svg';
|
||||
import coinIcon from 'soapbox/assets/icons/coin.svg';
|
||||
import moneyBag from 'soapbox/assets/icons/money-bag.svg';
|
||||
import pileCoin from 'soapbox/assets/icons/pile-coin.svg';
|
||||
import chestIcon from 'soapbox/assets/icons/chest.png';
|
||||
import coinStack from 'soapbox/assets/icons/coin-stack.png';
|
||||
import coinIcon from 'soapbox/assets/icons/coin.png';
|
||||
import moneyBag from 'soapbox/assets/icons/money-bag.png';
|
||||
import pileCoin from 'soapbox/assets/icons/pile-coin.png';
|
||||
import DisplayNameInline from 'soapbox/components/display-name-inline';
|
||||
import { Stack, Button, Input, Avatar, Text } from 'soapbox/components/ui';
|
||||
import IconButton from 'soapbox/components/ui/icon-button/icon-button';
|
||||
|
@ -19,8 +19,13 @@ import ZapButton from './zap-button/zap-button';
|
|||
|
||||
import type { Account as AccountEntity, Status as StatusEntity } from 'soapbox/types/entities';
|
||||
|
||||
const ZAP_AMOUNTS = [50, 200, 1_000, 3_000, 5_000];
|
||||
const ZAP_ICONS = [coinIcon, coinStack, pileCoin, moneyBag, chestIcon];
|
||||
const ZAP_PRESETS = [
|
||||
{ amount: 50, icon: coinIcon },
|
||||
{ amount: 200, icon: coinStack },
|
||||
{ amount: 1_000, icon: pileCoin },
|
||||
{ amount: 3_000, icon: moneyBag },
|
||||
{ amount: 5_000, icon: chestIcon },
|
||||
];
|
||||
|
||||
interface IZapPayRequestForm {
|
||||
status?: StatusEntity;
|
||||
|
@ -81,12 +86,12 @@ const ZapPayRequestForm = ({ account, status, onClose }: IZapPayRequestForm) =>
|
|||
</Stack>
|
||||
|
||||
<div className='flex justify-center'>
|
||||
{ZAP_AMOUNTS.map((amount, i) => (
|
||||
{ZAP_PRESETS.map(({ amount, icon }) => (
|
||||
<ZapButton
|
||||
onClick={() => setZapAmount(amount)}
|
||||
className='m-0.5 sm:m-1'
|
||||
selected={zapAmount === amount}
|
||||
icon={ZAP_ICONS[i]}
|
||||
icon={icon}
|
||||
amount={amount}
|
||||
/>
|
||||
))}
|
||||
|
|