Closed AMIRKHANEF closed 1 day ago
The changes in ProfileTab.tsx
focus on enhancing the transition effects of the Collapse
component, specifically by adding a width transition to both the visible and hidden states. The transition properties have been updated to provide smoother visual feedback. Additionally, a modification was made to the hideAccounts
function to ensure it only executes the showAccount
function when the toHideAll
parameter is defined.
File Path | Change Summary |
---|---|
packages/extension-polkagate/src/popup/home/ProfileTab.tsx | Updated transition properties for the Collapse component to include width transitions. Modified hideAccounts function to check if toHideAll is defined before executing showAccount . |
sequenceDiagram
participant User
participant ProfileTab
participant Collapse
User->>ProfileTab: Toggle visibility
ProfileTab->>Collapse: Update transition properties
Collapse-->>ProfileTab: Apply width transition
ProfileTab->>ProfileTab: Check toHideAll
alt toHideAll defined
ProfileTab->>Collapse: Show or hide accounts
end
🐰 In the meadow, the transitions flow,
With width and shadows, a graceful show.
When accounts hide, a check is made,
Smoothly they vanish, in the glade.
Hopping along, we celebrate this change,
In our little world, nothing feels strange! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit