@ape.swap/bonds-sdk 1.0.10-seedify → 1.0.11-seedify
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +3 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -72652,8 +72652,9 @@ const FullBondsView = ({ modalVariant = 'standard' }) => {
|
|
|
72652
72652
|
};
|
|
72653
72653
|
|
|
72654
72654
|
const Toggle = ({ options, activeOption, handleToggle, claimableBillsAmount, }) => {
|
|
72655
|
-
return (jsx$2(Flex, { sx: styles$5.container, children: jsx$2(AnimatePresence, { initial: false, children: options.map((option) => {
|
|
72656
|
-
|
|
72655
|
+
return (jsx$2(Flex, { className: "toggle-container", sx: styles$5.container, children: jsx$2(AnimatePresence, { initial: false, children: options.map((option) => {
|
|
72656
|
+
const isActive = option === activeOption;
|
|
72657
|
+
return (jsx$2(motion.div, { animate: { opacity: option === activeOption ? 1 : 0.6, scale: option === activeOption ? 1 : 0.9 }, exit: { opacity: 0, scale: 0.9 }, transition: { duration: 0.2, type: 'spring', stiffness: 50 }, sx: { overflow: 'hidden', width: '100%' }, children: jsx$2(Flex, { className: `${isActive ? 'toggleswitch-active' : 'toggleswitch-inactive'}`, sx: Object.assign(Object.assign({}, styles$5.switch), { background: option === activeOption ? 'primaryButton' : 'white2' }), onClick: () => handleToggle(option), children: jsxs(Text, { sx: { fontSize: '14px' }, children: [option, option === BondsViewOptions.YOURBONDS && claimableBillsAmount ? ` (${claimableBillsAmount})` : ''] }) }) }, option));
|
|
72657
72658
|
}) }) }));
|
|
72658
72659
|
};
|
|
72659
72660
|
|