Closed Nick-1979 closed 1 week ago
The changes in this pull request primarily involve modifications to various components within the codebase, focusing on enhancing type safety, improving prop handling, and refining visual styling. Notable updates include adjustments to prop types in components like AccountInputWithIdentity
, ChainLogo
, and Identity
, as well as the introduction of theme-based styling for icons across multiple components. Additionally, minor formatting changes were made to function signatures and import statements for better readability and consistency.
File Path | Change Summary |
---|---|
.../AccountInputWithIdentity.tsx |
Updated setAddress prop type; reformatted function signature; adjusted handling of address and chain props. |
.../ChainLogo.tsx |
Modified genesisHash prop type to include null . |
.../Checkbox2.tsx |
Added space in function signature. |
.../Identity.tsx |
Added //@ts-nocheck directive; updated style prop type; made withShortAddress optional. |
.../MenuItem.tsx |
Added useTheme hook; replaced hardcoded color with theme-based color; reformatted function signature. |
.../AOC.tsx |
Introduced useTheme for dynamic styling; refined asset handling logic. |
.../utils.tsx |
Updated useUserAddedChainColor parameter type to allow null . |
.../ReferendumSummary.tsx |
Simplified VerticalBar component by removing theme prop; updated border color styling. |
.../SearchBox.tsx |
Updated ArrowForwardIosIcon color to use theme; removed commented-out line. |
.../AddressDropdown.tsx |
Added type imports; utilized useTheme for icon color; improved type handling. |
.../ChooseDelegator.tsx |
Simplified data fetching logic; updated callback parameter naming. |
.../Delegate.tsx |
Added useTheme for styling; updated colors to use theme values. |
.../index.tsx |
Changed delegateeAddress type to allow null . |
.../ReferendaTracks.tsx |
Adjusted LoadingSkeleton props; reformatted function signature. |
.../TAccountDisplay.tsx |
Updated api prop type to allow undefined ; improved import statements. |
.../RemoveDelegate.tsx |
Enhanced type safety for optional properties. |
.../old-SupportUs.tsx |
Deleted obsolete component. |
.../ChainList.tsx |
Changed background color for Grid component. |
.../CurrencySwitch.tsx |
Updated background color for toggle button. |
.../Currency.tsx |
Modified Popover border color for dark mode. |
.../FavoriteChains.tsx |
Updated Popover border color for dark mode. |
.../HomeMenu.tsx |
Minor formatting change in TaskButton . |
.../ImportAccSubMenuFullScreen.tsx |
Updated icon color to use theme value. |
.../TotalBalancePieChart.tsx |
Adjusted toggle text and icon color for consistency with theme. |
.../WatchList.tsx |
Integrated theme-based styling for icons and adjusted typography. |
.../Edit.tsx |
Added type imports; refined state handling for commission values. |
.../ClaimedRewardsChart.tsx |
Updated toggle text and icon color for consistency with theme. |
.../ActiveValidators.tsx |
Updated icon color to use theme value. |
.../RewardsChart.tsx |
Removed redundant @ts-nocheck ; improved error handling and type safety. |
.../FullScreenChainSwitch.tsx |
Changed border color for button and Popover. |
.../ImportAccSubMenu.tsx |
Updated icon color to use theme value. |
.../RemoteNodeSelectorWithSignals.tsx |
Updated border colors for UI components. |
.../HistoryItemModal.tsx |
Added useTheme for dynamic icon color. |
.../HistoryItem.tsx |
Added useTheme for dynamic icon color; updated import statement. |
.../AccountDetail.tsx |
Updated icon color and adjusted font size for Typography . |
.../LegacyApps.tsx |
Updated icon color to use theme value. |
.../index.tsx |
Updated icon color to use theme value. |
.../AddressDropdown.tsx |
Added useTheme for dynamic icon color; reformatted function signature. |
.../modal/AddressDropdown.tsx |
Added useTheme for dynamic icon color; reformatted function signature. |
.../AddressDropdownFullScreen.tsx |
Reformatted function signature; updated icon color to use theme value. |
.../PoolMoreInfo.tsx |
Added useTheme ; updated border color and refined component structure. |
.../CollapseIt.tsx |
Updated open parameter type; added useTheme ; improved styling consistency. |
sequenceDiagram
participant User
participant App
participant Component
User->>App: Interacts with UI
App->>Component: Update props
Component->>Component: Handle props changes
Component->>App: Render updated UI
AccountInputWithIdentity
component's prop types and type handling may relate to the overall improvements in type safety and component structure, which could be relevant to the visual and functional enhancements in the HistoryTabs
component.DeriveAccountModal
component, particularly the removal of the genesisHash
prop, suggest a simplification of prop management that aligns with the main PR's focus on streamlining component interfaces.React.memo
for performance optimizations is relevant to the main PR's changes in the AccountInputWithIdentity
component, which also aims to enhance performance and maintainability.SimpleModalTitle
component reflects a broader effort to improve component structure and reusability, similar to the changes made in the main PR.FormatPrice
component to enhance customization capabilities may relate to the main PR's focus on improving type handling and prop management in the AccountInputWithIdentity
component.FormatPrice
component may connect with the main PR's updates to prop types and type safety.AccountHolder
component to simplify its structure and improve prop management align with the main PR's objectives of streamlining component interfaces.TrackStats
component to enhance type safety and streamline data handling are relevant to the main PR's focus on improving type management in the AccountInputWithIdentity
component.SearchBox
component for managing search keywords and filter states may relate to the main PR's focus on improving component functionality and user experience.Progress
component may connect with the main PR's focus on improving user feedback and interface responsiveness.useBalances
hook to streamline balance management are relevant to the main PR's focus on improving data handling and state management.View
component aligns with the main PR's focus on improving user experience and interface consistency.SupportUs
modal reflects an enhancement in user engagement features, which may connect with the main PR's objectives of improving component functionality and user interaction.bug
🐰 In the code where rabbits hop,
Changes made, we won't stop!
Types and themes, all in line,
Making sure our code will shine.
With each tweak, our app will grow,
Hopping forward, to and fro! 🌟
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
New Features
Bug Fixes
Style
Documentation