From cd8fa35b765a96a01ce7185938782bc77edf325a Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Wed, 5 Jul 2023 14:28:39 +0200 Subject: [PATCH] Mp 2821 unlocked positions (#284) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added unlock flow to the deposited farm row * feat: added first itteration of unlocking/unlocked logic * feat: introduce getVaultPositionStatus * feat: added animated unlock label * fix: size fix * MP-2821: created the VaultUnlockBanner * MP-2821: finished single vault withdraw * MP-2821: finished vault unlock integration * fix: implemented feedback * tidy: refactor isWaiting > isConfirming * fix: updated according to feedback * fix: updated according to feedback * fix: added useMemo for multiple values * tidy: fixed some format issues * tidy: updated svg icon implementation * fix: fixed Bob’s glas-border issues * fix: refactor modal max-widths * MP-3031: moved deposit button into the table row : * fix: cleanup and adjustment to the button (according to layout) * fix: added nested groups and finalized the label animation * tidy: cleanup --- src/components/Earn/vault/VaultExpanded.tsx | 20 +------ src/components/Earn/vault/VaultRow.tsx | 8 ++- src/components/Earn/vault/VaultTable.tsx | 66 +++++++++++++++------ tailwind.config.js | 27 +-------- 4 files changed, 56 insertions(+), 65 deletions(-) diff --git a/src/components/Earn/vault/VaultExpanded.tsx b/src/components/Earn/vault/VaultExpanded.tsx index 749bc6f4..a0e88715 100644 --- a/src/components/Earn/vault/VaultExpanded.tsx +++ b/src/components/Earn/vault/VaultExpanded.tsx @@ -21,15 +21,6 @@ export default function VaultExpanded(props: Props) { const [isConfirming, setIsConfirming] = useState(false) const withdrawFromVaults = useStore((s) => s.withdrawFromVaults) - function enterVaultHandler() { - useStore.setState({ - vaultModal: { - vault: props.row.original, - selectedBorrowDenoms: [props.row.original.denoms.secondary], - }, - }) - } - function depositMoreHandler() { useStore.setState({ vaultModal: { @@ -59,14 +50,6 @@ export default function VaultExpanded(props: Props) { /* BUTTONS */ - function DepositButton() { - return ( - - ) - } - function DepositMoreButton() { return ( + )} ) }, diff --git a/tailwind.config.js b/tailwind.config.js index f8caea9b..22ec4af1 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,23 +1,6 @@ /** @type {import('tailwindcss').Config} */ const plugin = require('tailwindcss/plugin') -const flipClass = plugin(function ({ addUtilities }) { - addUtilities({ - '.flip-x-180': { - transform: 'rotateX(180deg)', - }, - '.preserve-3d': { - transformStyle: 'preserve-3d', - }, - '.perspective': { - perspective: '1000px', - }, - '.backface-hidden': { - backfaceVisibility: 'hidden', - }, - }) -}) - module.exports = { content: ['./src/pages/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx}'], safelist: [ @@ -52,7 +35,6 @@ module.exports = { fadein: 'fadein 1s ease-in-out forwards', glow: 'glow 1000ms ease-in-out forwards', progress: 'spin 1200ms cubic-bezier(0.5, 0, 0.5, 1) infinite', - flip: 'flip 10s linear alternate-reverse infinite', }, backdropBlur: { sticky: '50px', @@ -166,12 +148,6 @@ module.exports = { '66%': { opacity: 1 }, '100%': { opacity: 0 }, }, - flip: { - '0%': { transform: 'rotateX(0deg)' }, - '45%': { transform: 'rotateX(0deg)' }, - '55%': { transform: 'rotateX(180deg)' }, - '100%': { transform: 'rotateX(180deg)' }, - }, }, letterSpacing: { normal: 0, @@ -190,7 +166,7 @@ module.exports = { content: '1024px', modal: '895px', 'modal-sm': '517px', - 'modal-xs': '442px' + 'modal-xs': '442px', }, minWidth: { 15: '60px', @@ -232,7 +208,6 @@ module.exports = { }, }, plugins: [ - flipClass, require('tailwind-scrollbar-hide'), plugin(function ({ addBase, addUtilities, theme }) { addBase({