From 05fea8d49e69983cc1cdaaf39abab41e350af0ba Mon Sep 17 00:00:00 2001 From: Oskar <43062492+oskarvu@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:12:40 +0700 Subject: [PATCH] Update typography to match design system (#483) * Update tw config typography * Replace body typography classes * Replace label classes * Update mobile typography * Update letter spacing * Add minimum height to deposit benefits settings drawer * Align text to right in ltv panel * Remove duplicated classes * Remove new line in inactive farm panel * Fix typography in oracle panels * Update error warning typography at actions component * Add space between words --- .../app/.storybook/components/StoryGrid.tsx | 2 +- .../components/action-row/ActionRow.tsx | 8 +- .../components/SettingsDialog.tsx | 4 +- .../features/actions/views/ActionsView.tsx | 4 +- .../compliance/components/TermsOfService.tsx | 4 +- .../claim-rewards/components/RewardsList.tsx | 2 +- .../dialogs/collateral/views/SuccessView.tsx | 2 +- .../success-view/SuccessPanelTitle.tsx | 2 +- .../success-view/SuccessViewTokenRow.tsx | 6 +- .../e-mode/components/EModeCategoryTile.tsx | 2 +- .../dialogs/e-mode/views/EModeView.tsx | 2 +- .../dialogs/e-mode/views/SuccessView.tsx | 2 +- .../sandbox/views/SandboxDialogView.tsx | 4 +- .../deposit/components/BenefitsDialog.tsx | 2 +- .../components/UpgradeToSusdsSwitch.tsx | 2 +- .../views/SavingsDepositView.stories.tsx | 2 +- .../views/DowngradeUSDSToDaiView.tsx | 2 +- .../withdraw/components/form/AddressInput.tsx | 6 +- .../savings/withdraw/views/SuccessView.tsx | 2 +- .../components/NetworkStatusBadge.tsx | 2 +- .../views/SelectNetworkDialogView.tsx | 4 +- .../easy-borrow/components/form/Borrow.tsx | 2 +- .../easy-borrow/components/form/Deposits.tsx | 2 +- .../components/form/LoanToValuePanel.tsx | 6 +- .../components/form/LoanToValueSlider.tsx | 4 +- .../components/form/TokenSummary.tsx | 2 +- .../side-panel/EasyBorrowSidePanel.tsx | 4 +- .../active/ActiveFarmInfoPanel.tsx | 8 +- .../farm-info-panel/active/GrowingReward.tsx | 2 +- .../farm-info-panel/common/DetailsItem.tsx | 2 +- .../inactive/InactiveFarmInfoPanel.tsx | 15 +- .../tokens-to-deposit/TokensToDeposit.tsx | 2 +- .../claim-rewards-switch/ExitFarmSwitch.tsx | 4 +- .../farms/components/farm-tile/FarmTile.tsx | 10 +- .../interest-yield/InterestYieldChart.tsx | 4 +- .../interest-yield/components/Chart.tsx | 2 +- .../DebtCeilingProgress.tsx | 4 +- .../components/info-tile/InfoTile.tsx | 6 +- .../market-overview/components/LegendItem.tsx | 4 +- .../my-wallet/MyWalletChainMismatch.tsx | 2 +- .../my-wallet/components/ActionDetails.tsx | 6 +- .../my-wallet/components/BorrowRow.tsx | 2 +- .../my-wallet/components/TokenBalance.tsx | 4 +- .../components/FixedOraclePanel.tsx | 4 +- .../components/MarketOraclePanel.tsx | 4 +- .../oracle-panel/components/ProvidersList.tsx | 2 +- .../components/UnderlyingAssetOraclePanel.tsx | 4 +- .../components/UnknownOraclePanel.tsx | 2 +- .../components/YieldingFixedOraclePanel.tsx | 19 ++- .../SparkAirdropInfoPanel.tsx | 4 +- .../status-panel/EModeStatusPanel.tsx | 2 +- .../status-panel/components/Subheader.tsx | 4 +- .../views/components/TokenLinksDropdown.tsx | 4 +- .../components/AssetStatusDescription.tsx | 2 +- .../components/ApyWithRewardsCell.tsx | 4 +- .../components/AssetNameCell.tsx | 4 +- .../summary-tile/components/Tile.tsx | 2 +- .../my-wallet-panel/MyWalletPanel.tsx | 2 +- .../components/position/Position.tsx | 12 +- .../growing-balance/GrowingBalance.tsx | 2 +- .../navbar-item/SavingsAPYBadge.tsx | 2 +- .../savings-info-tile/SavingsInfoTile.tsx | 4 +- .../components/Explainer.tsx | 2 +- .../components/SavingsRate.tsx | 2 +- .../StablecoinsInWallet.tsx | 6 +- .../components/TokenCell.tsx | 2 +- .../components/UpgradeTokenButton.tsx | 2 +- .../UpgradeSavingsBanner.tsx | 4 +- .../welcome-dialog/WelcomeDialog.tsx | 2 +- .../topbar-airdrop/TopbarAirdropDropdown.tsx | 4 +- .../components/topbar-menu/TopbarMenu.tsx | 8 +- .../components/TopbarMenuAirdropItem.tsx | 8 +- .../components/TopbarMenuRewardsItem.tsx | 6 +- .../topbar-navigation/TopbarButton.tsx | 2 +- .../topbar-rewards/TopbarRewards.tsx | 4 +- .../components/TopbarWalletAddressDisplay.tsx | 2 +- .../app/src/ui/atoms/accordion/Accordion.tsx | 4 +- packages/app/src/ui/atoms/badge/Badge.tsx | 2 +- .../src/ui/atoms/dropdown/DropdownMenu.tsx | 2 +- .../health-factor-gauge/HealthFactorGauge.tsx | 14 +- .../app/src/ui/atoms/key-points/KeyPoints.tsx | 2 +- packages/app/src/ui/atoms/label/Label.tsx | 2 +- .../app/src/ui/atoms/link/Link.stories.tsx | 8 +- .../ui/atoms/network-badge/NetworkBadge.tsx | 2 +- .../redesign-top-banner/RedesignTopBanner.tsx | 2 +- packages/app/src/ui/atoms/table/Table.tsx | 4 +- packages/app/src/ui/atoms/tabs/Tabs.tsx | 4 +- packages/app/src/ui/atoms/tooltip/Tooltip.tsx | 4 +- .../app/src/ui/charts/ChartTooltipContent.tsx | 4 +- .../ui/charts/components/ChartTabsPanel.tsx | 4 +- .../ui/charts/components/TimeframeButtons.tsx | 2 +- .../components/PageNotSupportedWarning.tsx | 4 +- packages/app/src/ui/molecules/alert/Alert.tsx | 2 +- .../asset-selector/AssetSelector.tsx | 10 +- .../cooldown-timer/CooldownTimer.tsx | 4 +- .../data-table/components/ColumnHeader.tsx | 4 +- .../components/CompactValueCell.tsx | 6 +- .../data-table/components/PercentageCell.tsx | 2 +- .../data-table/components/SwitchCell.tsx | 2 +- .../data-table/components/TokenWithLogo.tsx | 2 +- .../HealthFactorPanelContent.tsx | 6 +- .../src/ui/molecules/icon-stack/IconStack.tsx | 2 +- .../labeled-switch/LabeledSwitch.tsx | 2 +- .../ui/molecules/token-amount/TokenAmount.tsx | 8 +- .../ui/organisms/asset-input/AssetInput.tsx | 12 +- .../ResponsiveDataTable.tsx | 2 +- .../RiskAcknowledgement.tsx | 2 +- .../TransactionOverview.tsx | 8 +- .../rows/TransactionOverviewApyChange.tsx | 4 +- .../TransactionOverviewAvailableAssets.tsx | 4 +- .../rows/TransactionOverviewFarmApy.tsx | 4 +- .../TransactionOverviewHealthFactorChange.tsx | 2 +- .../rows/TransactionOverviewMaxLtvChange.tsx | 4 +- .../rows/TransactionOverviewRoute.tsx | 6 +- .../rows/TransactionOverviewSavingsApy.tsx | 4 +- .../rows/TransactionOverviewStakedInFarm.tsx | 2 +- packages/app/tailwind.config.ts | 145 +++++------------- 117 files changed, 273 insertions(+), 340 deletions(-) diff --git a/packages/app/.storybook/components/StoryGrid.tsx b/packages/app/.storybook/components/StoryGrid.tsx index f4816480c..a0605277c 100644 --- a/packages/app/.storybook/components/StoryGrid.tsx +++ b/packages/app/.storybook/components/StoryGrid.tsx @@ -9,7 +9,7 @@ export function StoryGrid({ children, className }: { children: React.ReactNode; } function GridLabel({ children }: { children: React.ReactNode }) { - return
{children}
+ return
{children}
} StoryGrid.Label = GridLabel diff --git a/packages/app/src/features/actions/components/action-row/ActionRow.tsx b/packages/app/src/features/actions/components/action-row/ActionRow.tsx index f2392ee68..893e26e08 100644 --- a/packages/app/src/features/actions/components/action-row/ActionRow.tsx +++ b/packages/app/src/features/actions/components/action-row/ActionRow.tsx @@ -51,7 +51,7 @@ function ActionRow({ children, actionHandlerState, actionIndex, onAction, layout const iconVariants = cva( cn( - 'typography-label-5 grid h-6 w-12 grid-cols-[1fr_1px_1fr] items-center', + 'typography-label-3 grid h-6 w-12 grid-cols-[1fr_1px_1fr] items-center', 'justify-items-center rounded-xs transition-all delay-500 duration-200 sm:h-8 sm:w-16', ), { @@ -88,7 +88,7 @@ function Title({ children }: { children: ReactNode }) { return ( @@ -147,7 +147,7 @@ function ErrorWarning() {
diff --git a/packages/app/src/features/actions/settings-dialog/components/SettingsDialog.tsx b/packages/app/src/features/actions/settings-dialog/components/SettingsDialog.tsx index af3aa996c..9d2669fad 100644 --- a/packages/app/src/features/actions/settings-dialog/components/SettingsDialog.tsx +++ b/packages/app/src/features/actions/settings-dialog/components/SettingsDialog.tsx @@ -54,8 +54,8 @@ export function SettingsDialog(props: SettingsDialogProps) { Settings
-

Use permits when available

-

+

Use permits when available

+

Permits are a way to save gas by avoiding on-chain approve transactions. Instead signed permits are bundled with another transactions such as deposit or borrow.

diff --git a/packages/app/src/features/actions/views/ActionsView.tsx b/packages/app/src/features/actions/views/ActionsView.tsx index 0490f56e6..ef45633e6 100644 --- a/packages/app/src/features/actions/views/ActionsView.tsx +++ b/packages/app/src/features/actions/views/ActionsView.tsx @@ -10,8 +10,8 @@ import { ActionsGridLayout } from '../types' const actionsTitleVariants = cva('', { variants: { layout: { - extended: 'typography-label-2 text-primary', - compact: 'typography-label-5 text-secondary', + extended: 'typography-heading-5 text-primary', + compact: 'typography-label-3 text-secondary', }, }, }) diff --git a/packages/app/src/features/compliance/components/TermsOfService.tsx b/packages/app/src/features/compliance/components/TermsOfService.tsx index 81e539dd9..372a9bf89 100644 --- a/packages/app/src/features/compliance/components/TermsOfService.tsx +++ b/packages/app/src/features/compliance/components/TermsOfService.tsx @@ -73,7 +73,7 @@ export function TermsOfService({ onAgree }: TermsOfServiceProps) { return (
Terms of Service and Disclaimer
-
+
By using this site, I represent that I have read and agree to the and{' '} Privacy Policy @@ -82,7 +82,7 @@ export function TermsOfService({ onAgree }: TermsOfServiceProps) {
diff --git a/packages/app/src/features/dialogs/claim-rewards/components/RewardsList.tsx b/packages/app/src/features/dialogs/claim-rewards/components/RewardsList.tsx index edad1091f..1b2b547a5 100644 --- a/packages/app/src/features/dialogs/claim-rewards/components/RewardsList.tsx +++ b/packages/app/src/features/dialogs/claim-rewards/components/RewardsList.tsx @@ -14,7 +14,7 @@ export function RewardsList({ rewards, className }: RewardsListProps) { {rewards.map(({ token, amount }, index) => (
- +
{token.symbol} diff --git a/packages/app/src/features/dialogs/common/components/success-view/SuccessPanelTitle.tsx b/packages/app/src/features/dialogs/common/components/success-view/SuccessPanelTitle.tsx index f1fd3adbd..8e92b7f70 100644 --- a/packages/app/src/features/dialogs/common/components/success-view/SuccessPanelTitle.tsx +++ b/packages/app/src/features/dialogs/common/components/success-view/SuccessPanelTitle.tsx @@ -3,5 +3,5 @@ export interface DialogSectionTitleProps { } export function SuccessViewPanelTitle({ children }: DialogSectionTitleProps) { - return

{children}

+ return

{children}

} diff --git a/packages/app/src/features/dialogs/common/components/success-view/SuccessViewTokenRow.tsx b/packages/app/src/features/dialogs/common/components/success-view/SuccessViewTokenRow.tsx index 611a6716f..8bc4739ae 100644 --- a/packages/app/src/features/dialogs/common/components/success-view/SuccessViewTokenRow.tsx +++ b/packages/app/src/features/dialogs/common/components/success-view/SuccessViewTokenRow.tsx @@ -12,11 +12,11 @@ export function SuccessViewTokenRow({ token, amount }: SuccessViewTokenRowProps)
- {token.symbol} + {token.symbol}
-
{token.format(amount, { style: 'auto' })}
-
{token.formatUSD(amount)}
+
{token.format(amount, { style: 'auto' })}
+
{token.formatUSD(amount)}
) diff --git a/packages/app/src/features/dialogs/e-mode/components/EModeCategoryTile.tsx b/packages/app/src/features/dialogs/e-mode/components/EModeCategoryTile.tsx index e2a57e54e..97f57a063 100644 --- a/packages/app/src/features/dialogs/e-mode/components/EModeCategoryTile.tsx +++ b/packages/app/src/features/dialogs/e-mode/components/EModeCategoryTile.tsx @@ -31,7 +31,7 @@ export function EModeCategoryTile({ eModeCategory }: EModeCategoryTileProps) { {variant === 'active' ? 'Active' : 'Inactive'} -

{eModeCategory.name}

+

{eModeCategory.name}

) diff --git a/packages/app/src/features/dialogs/e-mode/views/EModeView.tsx b/packages/app/src/features/dialogs/e-mode/views/EModeView.tsx index 24bebc5bc..28b53693c 100644 --- a/packages/app/src/features/dialogs/e-mode/views/EModeView.tsx +++ b/packages/app/src/features/dialogs/e-mode/views/EModeView.tsx @@ -43,7 +43,7 @@ export function EModeView({
Set E-Mode Category -

+

E-Mode allows you to borrow assets belonging to the selected category.
Please visit our{' '} diff --git a/packages/app/src/features/dialogs/e-mode/views/SuccessView.tsx b/packages/app/src/features/dialogs/e-mode/views/SuccessView.tsx index edbc85d0f..30146c3a8 100644 --- a/packages/app/src/features/dialogs/e-mode/views/SuccessView.tsx +++ b/packages/app/src/features/dialogs/e-mode/views/SuccessView.tsx @@ -13,7 +13,7 @@ export function SuccessView({ eModeCategoryName, onProceed }: SuccessViewProps) return ( - +

{eModeCategoryName}

Option activated

diff --git a/packages/app/src/features/dialogs/sandbox/views/SandboxDialogView.tsx b/packages/app/src/features/dialogs/sandbox/views/SandboxDialogView.tsx index 74ed6e349..08c27cd8c 100644 --- a/packages/app/src/features/dialogs/sandbox/views/SandboxDialogView.tsx +++ b/packages/app/src/features/dialogs/sandbox/views/SandboxDialogView.tsx @@ -31,7 +31,7 @@ export function SandboxDialogView({ Sandbox Mode -

+

Sandbox Mode is a risk-free environment where you can test the Spark App and understand how it works. When you're ready, you can switch back to the real world. Have fun exploring!

@@ -42,7 +42,7 @@ export function SandboxDialogView({ 'No real assets involved', 'Fast – no need to sign transactions', ].map((item, index) => ( -
  • +
  • {item}
  • diff --git a/packages/app/src/features/dialogs/savings/deposit/components/BenefitsDialog.tsx b/packages/app/src/features/dialogs/savings/deposit/components/BenefitsDialog.tsx index 4c61051ff..0132808e9 100644 --- a/packages/app/src/features/dialogs/savings/deposit/components/BenefitsDialog.tsx +++ b/packages/app/src/features/dialogs/savings/deposit/components/BenefitsDialog.tsx @@ -31,7 +31,7 @@ export function BenefitsDialog({ portalContainerRef, apyImprovement }: BenefitsD

    Deposit into Savings USDS

    -

    +

    By enabling this option, you will be depositing your stablecoins into Savings USDS, thus accessing the SSR (Sky Savings Rate), which provides the highest predictable rate in USDS. You can exit Savings USDS at any time at your sole discretion. diff --git a/packages/app/src/features/dialogs/savings/deposit/components/UpgradeToSusdsSwitch.tsx b/packages/app/src/features/dialogs/savings/deposit/components/UpgradeToSusdsSwitch.tsx index 7f84bb214..8365962b5 100644 --- a/packages/app/src/features/dialogs/savings/deposit/components/UpgradeToSusdsSwitch.tsx +++ b/packages/app/src/features/dialogs/savings/deposit/components/UpgradeToSusdsSwitch.tsx @@ -23,7 +23,7 @@ export function UpgradeToSusdsSwitch({

    -
    +
    Deposit into Savings USDS and get{' '} {apyImprovement ? ( {formatPercentage(apyImprovement)} higher APY diff --git a/packages/app/src/features/dialogs/savings/deposit/views/SavingsDepositView.stories.tsx b/packages/app/src/features/dialogs/savings/deposit/views/SavingsDepositView.stories.tsx index d1b3d4408..417b052e7 100644 --- a/packages/app/src/features/dialogs/savings/deposit/views/SavingsDepositView.stories.tsx +++ b/packages/app/src/features/dialogs/savings/deposit/views/SavingsDepositView.stories.tsx @@ -116,7 +116,7 @@ export const WithSUSDSSwitchMobile = getMobileStory(WithSUSDSSwitch) export const WithSUSDSSwitchTablet = getTabletStory(WithSUSDSSwitch) export const WithBenefitsDrawerOpened: Story = { - decorators: [WithWrappingDialog()], + decorators: [WithWrappingDialog(), WithClassname('min-h-[900px]')], args: { savingsUsdsSwitchInfo: { showSwitch: true, diff --git a/packages/app/src/features/dialogs/savings/migrate/downgrade/views/DowngradeUSDSToDaiView.tsx b/packages/app/src/features/dialogs/savings/migrate/downgrade/views/DowngradeUSDSToDaiView.tsx index e807c3bb6..5b54e2aa6 100644 --- a/packages/app/src/features/dialogs/savings/migrate/downgrade/views/DowngradeUSDSToDaiView.tsx +++ b/packages/app/src/features/dialogs/savings/migrate/downgrade/views/DowngradeUSDSToDaiView.tsx @@ -41,7 +41,7 @@ export function DowngradeUSDSToDaiView({ Downgrade {fromToken.symbol} to {toToken.symbol} -
    +
    You can downgrade from USDS to DAI whenever you choose, and you are free to switch back from DAI to USDS in the future, at your own sole discretion.{' '} diff --git a/packages/app/src/features/dialogs/savings/withdraw/components/form/AddressInput.tsx b/packages/app/src/features/dialogs/savings/withdraw/components/form/AddressInput.tsx index fa5edb156..3e87e0761 100644 --- a/packages/app/src/features/dialogs/savings/withdraw/components/form/AddressInput.tsx +++ b/packages/app/src/features/dialogs/savings/withdraw/components/form/AddressInput.tsx @@ -15,11 +15,11 @@ export const AddressInput = forwardRef( ({ error, blockExplorerUrl, label, ...rest }, ref) => { return (
    - {label &&
    {label}
    } + {label &&
    {label}
    }
    (
    {error && (
    {error} diff --git a/packages/app/src/features/dialogs/savings/withdraw/views/SuccessView.tsx b/packages/app/src/features/dialogs/savings/withdraw/views/SuccessView.tsx index 42fde84f5..b960d4e66 100644 --- a/packages/app/src/features/dialogs/savings/withdraw/views/SuccessView.tsx +++ b/packages/app/src/features/dialogs/savings/withdraw/views/SuccessView.tsx @@ -28,7 +28,7 @@ export function SuccessView({ tokenToWithdraw, closeDialog, sendModeExtension }: Recipient )} diff --git a/packages/app/src/features/dialogs/select-network/components/NetworkStatusBadge.tsx b/packages/app/src/features/dialogs/select-network/components/NetworkStatusBadge.tsx index aa478c34e..7621944af 100644 --- a/packages/app/src/features/dialogs/select-network/components/NetworkStatusBadge.tsx +++ b/packages/app/src/features/dialogs/select-network/components/NetworkStatusBadge.tsx @@ -21,7 +21,7 @@ export function NetworkStatusBadge({ status }: NetworkStatusBadgeProps) { return (
    -
    {text}
    +
    {text}
    ) } diff --git a/packages/app/src/features/dialogs/select-network/views/SelectNetworkDialogView.tsx b/packages/app/src/features/dialogs/select-network/views/SelectNetworkDialogView.tsx index 4761c4cc1..de7f37b5e 100644 --- a/packages/app/src/features/dialogs/select-network/views/SelectNetworkDialogView.tsx +++ b/packages/app/src/features/dialogs/select-network/views/SelectNetworkDialogView.tsx @@ -32,7 +32,7 @@ export function SelectNetworkDialogView({ chains }: SelectNetworkDialogViewProps key={chain.name} >
    -
    +
    {chain.name}
    @@ -42,7 +42,7 @@ export function SelectNetworkDialogView({ chains }: SelectNetworkDialogViewProps ) : undefined}
    -
    +
    Network available for: {chain.supportedPages.join(', ')}
    diff --git a/packages/app/src/features/easy-borrow/components/form/Borrow.tsx b/packages/app/src/features/easy-borrow/components/form/Borrow.tsx index f59b6bac9..f6e753138 100644 --- a/packages/app/src/features/easy-borrow/components/form/Borrow.tsx +++ b/packages/app/src/features/easy-borrow/components/form/Borrow.tsx @@ -38,7 +38,7 @@ export function Borrow({
    -

    Borrow

    +

    Borrow

    {pageStatus.state === 'confirmation' && ( )} diff --git a/packages/app/src/features/easy-borrow/components/form/Deposits.tsx b/packages/app/src/features/easy-borrow/components/form/Deposits.tsx index 7e3d83dcc..acef5cf3d 100644 --- a/packages/app/src/features/easy-borrow/components/form/Deposits.tsx +++ b/packages/app/src/features/easy-borrow/components/form/Deposits.tsx @@ -47,7 +47,7 @@ export function Deposits({
    -

    Deposit

    +

    Deposit

    Some assets (e.g., isolated assets) are only accessible via the{' '} My portfolio at this time. diff --git a/packages/app/src/features/easy-borrow/components/form/LoanToValuePanel.tsx b/packages/app/src/features/easy-borrow/components/form/LoanToValuePanel.tsx index 3a7aa2df2..00efefa2b 100644 --- a/packages/app/src/features/easy-borrow/components/form/LoanToValuePanel.tsx +++ b/packages/app/src/features/easy-borrow/components/form/LoanToValuePanel.tsx @@ -25,14 +25,14 @@ export function LoanToValuePanel({
    -
    +

    Loan to Value (LTV)

    {formatPercentage(ltv)}

    -
    +
    Ratio of the collateral value to the borrowed value
    -
    max. {formatPercentage(maxLtv)}
    +
    max. {formatPercentage(maxLtv)}
    diff --git a/packages/app/src/features/easy-borrow/components/form/LoanToValueSlider.tsx b/packages/app/src/features/easy-borrow/components/form/LoanToValueSlider.tsx index faa6912a3..de84a8d93 100644 --- a/packages/app/src/features/easy-borrow/components/form/LoanToValueSlider.tsx +++ b/packages/app/src/features/easy-borrow/components/form/LoanToValueSlider.tsx @@ -69,7 +69,7 @@ export function LoanToValueSlider({ isLast && '-ml-0.5 -mr-1 rounded-e-full', )} > -
    +
    {step.label}
    @@ -95,7 +95,7 @@ export function LoanToValueSlider({ left: `${(maxSelectableValue / maxSliderValue) * 100}%`, }} /> -
    +
    {formatPercentage(liquidationLtv)}
    diff --git a/packages/app/src/features/easy-borrow/components/form/TokenSummary.tsx b/packages/app/src/features/easy-borrow/components/form/TokenSummary.tsx index a748d3b2a..610670aef 100644 --- a/packages/app/src/features/easy-borrow/components/form/TokenSummary.tsx +++ b/packages/app/src/features/easy-borrow/components/form/TokenSummary.tsx @@ -20,7 +20,7 @@ export function TokenSummary({ position, type, maxSymbols = 3 }: TokenSummaryPro return (
    -
    {summary}
    +
    {summary}
    ) } diff --git a/packages/app/src/features/easy-borrow/components/side-panel/EasyBorrowSidePanel.tsx b/packages/app/src/features/easy-borrow/components/side-panel/EasyBorrowSidePanel.tsx index a16bef42d..0bb770c6d 100644 --- a/packages/app/src/features/easy-borrow/components/side-panel/EasyBorrowSidePanel.tsx +++ b/packages/app/src/features/easy-borrow/components/side-panel/EasyBorrowSidePanel.tsx @@ -20,7 +20,7 @@ export function EasyBorrowSidePanel({ hf, liquidationDetails, borrowRate, dai, u
    )} -

    Borrow Rate

    +

    Borrow Rate

    {formatPercentage(borrowRate, { skipSign: true })}%

    -
    +
    Borrow {dai} {usds ? ` or ${usds}` : ''} directly from SKY
    diff --git a/packages/app/src/features/farm-details/components/farm-info-panel/active/ActiveFarmInfoPanel.tsx b/packages/app/src/features/farm-details/components/farm-info-panel/active/ActiveFarmInfoPanel.tsx index 1dd7af9a2..aaf9560aa 100644 --- a/packages/app/src/features/farm-details/components/farm-info-panel/active/ActiveFarmInfoPanel.tsx +++ b/packages/app/src/features/farm-details/components/farm-info-panel/active/ActiveFarmInfoPanel.tsx @@ -101,19 +101,19 @@ export function ActiveFarmInfoPanel({
    {farm.depositors && ( -
    +
    {farm.depositors}
    )} -
    +
    {USD_MOCK_TOKEN.formatUSD(farm.totalSupply, { compact: true })}
    {farm.apy?.gt(0) && ( }> -
    +
    {formatPercentage(farm.apy, { minimumFractionDigits: 0 })}
    @@ -121,7 +121,7 @@ export function ActiveFarmInfoPanel({
    {rewardToken.unitPriceUsd.gt(0) && ( -
    +
    {rewardToken.formatUSD(currentReward)} diff --git a/packages/app/src/features/farm-details/components/farm-info-panel/common/DetailsItem.tsx b/packages/app/src/features/farm-details/components/farm-info-panel/common/DetailsItem.tsx index f08eaef74..70fdfef9c 100644 --- a/packages/app/src/features/farm-details/components/farm-info-panel/common/DetailsItem.tsx +++ b/packages/app/src/features/farm-details/components/farm-info-panel/common/DetailsItem.tsx @@ -11,7 +11,7 @@ export function DetailsItem({ title, explainer, children }: DetailsItemProps) {
    diff --git a/packages/app/src/features/farm-details/components/farm-info-panel/inactive/InactiveFarmInfoPanel.tsx b/packages/app/src/features/farm-details/components/farm-info-panel/inactive/InactiveFarmInfoPanel.tsx index 82c2e8fe0..fa7a6f7c6 100644 --- a/packages/app/src/features/farm-details/components/farm-info-panel/inactive/InactiveFarmInfoPanel.tsx +++ b/packages/app/src/features/farm-details/components/farm-info-panel/inactive/InactiveFarmInfoPanel.tsx @@ -44,26 +44,26 @@ export function InactiveFarmInfoPanel({
    {farm.depositors && ( -
    +
    {farm.depositors}
    )} -
    +
    {USD_MOCK_TOKEN.formatUSD(farm.totalSupply, { compact: true })}
    {farm.apy?.gt(0) && ( }> -
    +
    {formatPercentage(farm.apy, { minimumFractionDigits: 0 })}
    )} {farm.apy?.isZero() && farm.totalRewarded && ( -
    +
    {farm.rewardToken.format(farm.totalRewarded, { style: 'compact' })} {farm.rewardToken.symbol}
    @@ -101,7 +101,7 @@ function PointsFarmDetails({ {isChroniclePointsFarm && }
    -
    +
    {isChroniclePointsFarm && (
    Chronicle is the original oracle on Ethereum built within MakerDAO for the creation of DAI. Today, @@ -129,11 +129,10 @@ function TokenFarmDetails({ farm, assetsGroupType }: { farm: Farm; assetsGroupTy {' '} in rewards -
    +
    {farm.apy?.gt(0) && ( <>Deposit any of the tokens listed below and start farming {farm.rewardToken.symbol} tokens. - )} -
    + )}{' '} Learn more about farming{' '} here diff --git a/packages/app/src/features/farm-details/components/tokens-to-deposit/TokensToDeposit.tsx b/packages/app/src/features/farm-details/components/tokens-to-deposit/TokensToDeposit.tsx index 4762b6ede..2e1c96b76 100644 --- a/packages/app/src/features/farm-details/components/tokens-to-deposit/TokensToDeposit.tsx +++ b/packages/app/src/features/farm-details/components/tokens-to-deposit/TokensToDeposit.tsx @@ -22,7 +22,7 @@ export function TokensToDeposit({ assets, openStakeDialog }: TokensToDepositProp header: 'Balance', headerAlign: 'right', renderCell: ({ balance, token }) => ( -
    +
    {balance.eq(0) ? '-' : token.format(balance, { style: 'auto' })}
    ), diff --git a/packages/app/src/features/farm-details/dialogs/unstake/components/claim-rewards-switch/ExitFarmSwitch.tsx b/packages/app/src/features/farm-details/dialogs/unstake/components/claim-rewards-switch/ExitFarmSwitch.tsx index 6208600d0..da82d1acd 100644 --- a/packages/app/src/features/farm-details/dialogs/unstake/components/claim-rewards-switch/ExitFarmSwitch.tsx +++ b/packages/app/src/features/farm-details/dialogs/unstake/components/claim-rewards-switch/ExitFarmSwitch.tsx @@ -20,11 +20,11 @@ export function ExitFarmSwitch({ checked, onSwitch, reward }: UpgradeToSusdsSwit
    -
    +
    Withdraw and claim rewards in one transaction
    ~{rewardAmount} {reward.token.symbol} {reward.token.unitPriceUsd.gt(0) && `(~${rewardUsdValue})`} diff --git a/packages/app/src/features/farms/components/farm-tile/FarmTile.tsx b/packages/app/src/features/farms/components/farm-tile/FarmTile.tsx index e4f4b0442..cf000601c 100644 --- a/packages/app/src/features/farms/components/farm-tile/FarmTile.tsx +++ b/packages/app/src/features/farms/components/farm-tile/FarmTile.tsx @@ -63,7 +63,7 @@ export function FarmTile({
    -
    +
    Deposit {entryAssetsGroup.name}
    @@ -71,7 +71,7 @@ export function FarmTile({
    {apy?.gt(0) && ( <> -
    APY
    +
    APY
    {staked.gt(0) ? ( <> -
    Tokens deposited:
    -
    +
    Tokens deposited:
    +
    farm-reward-icon {stakingToken.format(staked, { style: 'auto' })}{' '} {stakingToken.symbol} @@ -93,7 +93,7 @@ export function FarmTile({ ) : ( <> -
    Tokens to deposit:
    +
    Tokens to deposit:
    )} diff --git a/packages/app/src/features/market-details/components/charts/interest-yield/InterestYieldChart.tsx b/packages/app/src/features/market-details/components/charts/interest-yield/InterestYieldChart.tsx index bbb9402f9..0fcc6e030 100644 --- a/packages/app/src/features/market-details/components/charts/interest-yield/InterestYieldChart.tsx +++ b/packages/app/src/features/market-details/components/charts/interest-yield/InterestYieldChart.tsx @@ -57,11 +57,11 @@ export function InterestYieldChart({
    -
    Borrow APY
    +
    Borrow APY
    -
    Utilization Rate
    +
    Utilization Rate
    diff --git a/packages/app/src/features/market-details/components/charts/interest-yield/components/Chart.tsx b/packages/app/src/features/market-details/components/charts/interest-yield/components/Chart.tsx index d555e4158..bbbf67bbd 100644 --- a/packages/app/src/features/market-details/components/charts/interest-yield/components/Chart.tsx +++ b/packages/app/src/features/market-details/components/charts/interest-yield/components/Chart.tsx @@ -208,7 +208,7 @@ function Chart({ function TooltipContent({ data }: { data: GraphDataPoint }) { return ( -
    +

    Utilization Rate:

    Borrow APY:

    diff --git a/packages/app/src/features/market-details/components/debt-ceiling-progress/DebtCeilingProgress.tsx b/packages/app/src/features/market-details/components/debt-ceiling-progress/DebtCeilingProgress.tsx index ff8338fdc..d0fe586a9 100644 --- a/packages/app/src/features/market-details/components/debt-ceiling-progress/DebtCeilingProgress.tsx +++ b/packages/app/src/features/market-details/components/debt-ceiling-progress/DebtCeilingProgress.tsx @@ -22,7 +22,7 @@ export function DebtCeilingProgress({ debt, debtCeiling }: DebtCeilingProgressPr
    -

    Isolated Debt Ceiling

    +

    Isolated Debt Ceiling

    Debt ceiling limits the amount possible to borrow against this asset by protocol users. Debt ceiling is specific to assets in isolation mode and is denoted in USD.{' '} @@ -31,7 +31,7 @@ export function DebtCeilingProgress({ debt, debtCeiling }: DebtCeilingProgressPr
    -

    +

    {children}

    + return
    {children}
    } function Value({ children, 'data-testid': dataTestId, className }: InfoTileProps) { return (
    -
    {children}
    +
    {children}
    ) } @@ -46,7 +46,7 @@ function LegendItemBadge({ variant }: { variant: LegendItemVariant }) { return (
    -
    {badgeText}
    +
    {badgeText}
    ) } diff --git a/packages/app/src/features/market-details/components/my-wallet/MyWalletChainMismatch.tsx b/packages/app/src/features/market-details/components/my-wallet/MyWalletChainMismatch.tsx index f398051cf..75f259e27 100644 --- a/packages/app/src/features/market-details/components/my-wallet/MyWalletChainMismatch.tsx +++ b/packages/app/src/features/market-details/components/my-wallet/MyWalletChainMismatch.tsx @@ -4,7 +4,7 @@ export function MyWalletChainMismatch() { return (

    My Wallet

    -

    +

    To access this asset, please switch your wallet connection to the appropriate chain.

    diff --git a/packages/app/src/features/market-details/components/my-wallet/components/ActionDetails.tsx b/packages/app/src/features/market-details/components/my-wallet/components/ActionDetails.tsx index adcacf753..912269e9c 100644 --- a/packages/app/src/features/market-details/components/my-wallet/components/ActionDetails.tsx +++ b/packages/app/src/features/market-details/components/my-wallet/components/ActionDetails.tsx @@ -10,11 +10,11 @@ interface ActionDetailsProps { export function ActionDetails({ label, token, value }: ActionDetailsProps) { return (
    -

    {label}

    -

    +

    {label}

    +

    {token.format(value, { style: 'auto' })} {token.symbol}

    -
    {token.formatUSD(value)}
    +
    {token.formatUSD(value)}
    ) } diff --git a/packages/app/src/features/market-details/components/my-wallet/components/BorrowRow.tsx b/packages/app/src/features/market-details/components/my-wallet/components/BorrowRow.tsx index e104b614d..7f2bed53f 100644 --- a/packages/app/src/features/market-details/components/my-wallet/components/BorrowRow.tsx +++ b/packages/app/src/features/market-details/components/my-wallet/components/BorrowRow.tsx @@ -34,7 +34,7 @@ export function BorrowRow({ token, availableToBorrow, eligibility, onAction }: B function InfoWrapper({ children }: { children: React.ReactNode }) { return (
    -

    {children}

    +

    {children}

    ) } diff --git a/packages/app/src/features/market-details/components/my-wallet/components/TokenBalance.tsx b/packages/app/src/features/market-details/components/my-wallet/components/TokenBalance.tsx index 6ebc27742..568396207 100644 --- a/packages/app/src/features/market-details/components/my-wallet/components/TokenBalance.tsx +++ b/packages/app/src/features/market-details/components/my-wallet/components/TokenBalance.tsx @@ -11,10 +11,10 @@ interface TokenBalanceProps { export function TokenBalance({ token, balance }: TokenBalanceProps) { return (
    -

    Balance:

    +

    Balance:

    -

    +

    {token.format(balance, { style: 'auto' })} {token.symbol}

    diff --git a/packages/app/src/features/market-details/components/oracle-panel/components/FixedOraclePanel.tsx b/packages/app/src/features/market-details/components/oracle-panel/components/FixedOraclePanel.tsx index c75961296..107574ee2 100644 --- a/packages/app/src/features/market-details/components/oracle-panel/components/FixedOraclePanel.tsx +++ b/packages/app/src/features/market-details/components/oracle-panel/components/FixedOraclePanel.tsx @@ -10,9 +10,9 @@ export function FixedOraclePanel({ chainId, price, priceOracleAddress, token }: return (
    -
    Oracle type
    +
    Oracle type
    -

    Fixed Price

    +

    Fixed Price

    The asset price is set by a contract at a predefined value, adjustable only through Sky governance decisions. diff --git a/packages/app/src/features/market-details/components/oracle-panel/components/MarketOraclePanel.tsx b/packages/app/src/features/market-details/components/oracle-panel/components/MarketOraclePanel.tsx index 3ecd4ed3b..b54899183 100644 --- a/packages/app/src/features/market-details/components/oracle-panel/components/MarketOraclePanel.tsx +++ b/packages/app/src/features/market-details/components/oracle-panel/components/MarketOraclePanel.tsx @@ -11,9 +11,9 @@ export function MarketOraclePanel({ providedBy, chainId, price, priceOracleAddre return (
    -
    Oracle type
    +
    Oracle type
    -

    +

    Market Price {providedBy.length > 1 && (Redundant)}

    diff --git a/packages/app/src/features/market-details/components/oracle-panel/components/ProvidersList.tsx b/packages/app/src/features/market-details/components/oracle-panel/components/ProvidersList.tsx index cf8e2aa44..d831f2d65 100644 --- a/packages/app/src/features/market-details/components/oracle-panel/components/ProvidersList.tsx +++ b/packages/app/src/features/market-details/components/oracle-panel/components/ProvidersList.tsx @@ -10,7 +10,7 @@ interface ProvidersListProps { export function ProvidersList({ providers }: ProvidersListProps) { return (
    -
    Provided by
    +
    Provided by
    -
    Oracle type
    +
    Oracle type
    -

    Underlying Asset Price

    +

    Underlying Asset Price

    The asset price is derived from a market price oracle tracking the value of the underlying asset. Sky Governance controls which oracle is used. diff --git a/packages/app/src/features/market-details/components/oracle-panel/components/UnknownOraclePanel.tsx b/packages/app/src/features/market-details/components/oracle-panel/components/UnknownOraclePanel.tsx index 0706de101..6e7c77311 100644 --- a/packages/app/src/features/market-details/components/oracle-panel/components/UnknownOraclePanel.tsx +++ b/packages/app/src/features/market-details/components/oracle-panel/components/UnknownOraclePanel.tsx @@ -9,7 +9,7 @@ export function UnknownOraclePanel({ chainId, token, price, priceOracleAddress } return (
    -

    Oracle

    +

    Oracle

    diff --git a/packages/app/src/features/market-details/components/oracle-panel/components/YieldingFixedOraclePanel.tsx b/packages/app/src/features/market-details/components/oracle-panel/components/YieldingFixedOraclePanel.tsx index c78f3fb98..fb7f8fe26 100644 --- a/packages/app/src/features/market-details/components/oracle-panel/components/YieldingFixedOraclePanel.tsx +++ b/packages/app/src/features/market-details/components/oracle-panel/components/YieldingFixedOraclePanel.tsx @@ -24,9 +24,9 @@ export function YieldingFixedOraclePanel({ return (
    -
    Oracle type
    +
    Oracle type
    -

    +

    Yielding Fixed Price {providedBy.length > 1 && (Redundant)}

    @@ -39,36 +39,36 @@ export function YieldingFixedOraclePanel({
    {ratio.toFixed(4)}
    -
    +
    {token.symbol} to {baseAssetSymbol} Ratio
    multiply sign
    {formatUSDPriceWithPrecision(baseAssetPrice)}
    -
    +
    {baseAssetSymbol} Oracle Price
    equal sign
    {formatUSDPriceWithPrecision(price)}
    -
    Final Price
    +
    Final Price
    @@ -77,6 +77,7 @@ export function YieldingFixedOraclePanel({ Ratio Contract Oracle Contract Price Contract Spark logo
    -

    Eligible for Spark Airdrop

    -

    +

    Eligible for Spark Airdrop

    +

    {eligibleToken} {participants} will be eligible for a future ⚡ SPK airdrop. Please read the details on the{' '} diff --git a/packages/app/src/features/market-details/components/status-panel/EModeStatusPanel.tsx b/packages/app/src/features/market-details/components/status-panel/EModeStatusPanel.tsx index 78feb101b..f190d27dc 100644 --- a/packages/app/src/features/market-details/components/status-panel/EModeStatusPanel.tsx +++ b/packages/app/src/features/market-details/components/status-panel/EModeStatusPanel.tsx @@ -60,7 +60,7 @@ export function EModeStatusPanel({ -

    +

    E-Mode for {categoryName} assets increases your LTV within the {categoryName} category. This means that when E-Mode is enabled, you will have higher borrowing power for assets in this category:{' '} {eModeCategoryTokens.join(', ')}. You can enter E-Mode from your{' '} diff --git a/packages/app/src/features/market-details/components/status-panel/components/Subheader.tsx b/packages/app/src/features/market-details/components/status-panel/components/Subheader.tsx index 89340645d..0a35f9704 100644 --- a/packages/app/src/features/market-details/components/status-panel/components/Subheader.tsx +++ b/packages/app/src/features/market-details/components/status-panel/components/Subheader.tsx @@ -16,7 +16,7 @@ export function Subheader({ status }: SubheaderProps) { In Isolation Mode you can only borrow stablecoins up to the debt ceiling and cannot use any other asset as collateral.{' '} - + Learn more . @@ -70,7 +70,7 @@ function Content({ children, variant }: ContentProps) { return

    {children}

    } -const variants = cva('typography-body-6', { +const variants = cva('typography-body-4', { variants: { variant: { orange: 'text-system-warning-primary', diff --git a/packages/app/src/features/market-details/views/components/TokenLinksDropdown.tsx b/packages/app/src/features/market-details/views/components/TokenLinksDropdown.tsx index c198cf904..bbc65a642 100644 --- a/packages/app/src/features/market-details/views/components/TokenLinksDropdown.tsx +++ b/packages/app/src/features/market-details/views/components/TokenLinksDropdown.tsx @@ -82,11 +82,11 @@ function TokenLinksDropdownItem({ address, token, label }: TokenLinksDropdownIte
    -
    +
    {label}
    -
    +
    } />
    diff --git a/packages/app/src/features/markets/components/asset-status-badge/components/AssetStatusDescription.tsx b/packages/app/src/features/markets/components/asset-status-badge/components/AssetStatusDescription.tsx index 2d3fec268..98d6fb47d 100644 --- a/packages/app/src/features/markets/components/asset-status-badge/components/AssetStatusDescription.tsx +++ b/packages/app/src/features/markets/components/asset-status-badge/components/AssetStatusDescription.tsx @@ -9,7 +9,7 @@ export function AssetStatusDescription({ children }: AssetStatusDescriptionProps return (
    {icon} -

    {description}

    +

    {description}

    ) } diff --git a/packages/app/src/features/markets/components/markets-table/components/ApyWithRewardsCell.tsx b/packages/app/src/features/markets/components/markets-table/components/ApyWithRewardsCell.tsx index e37e4945b..7dc287e0e 100644 --- a/packages/app/src/features/markets/components/markets-table/components/ApyWithRewardsCell.tsx +++ b/packages/app/src/features/markets/components/markets-table/components/ApyWithRewardsCell.tsx @@ -24,7 +24,7 @@ export function ApyWithRewardsCell({ mobileViewOptions, ...rest }: ApyWithReward if (mobileViewOptions?.isMobileView) { return (
    -
    {mobileViewOptions.rowTitle}
    +
    {mobileViewOptions.rowTitle}
    ) @@ -72,7 +72,7 @@ function CellValue({ value, dimmed }: CellValueProps) { return
    {formatPercentage(value)}
    } -const variants = cva('typography-label-4 text-primary', { +const variants = cva('typography-label-2 text-primary', { variants: { dimmed: { true: 'text-secondary/70', diff --git a/packages/app/src/features/markets/components/markets-table/components/AssetNameCell.tsx b/packages/app/src/features/markets/components/markets-table/components/AssetNameCell.tsx index b17cfeec8..081767108 100644 --- a/packages/app/src/features/markets/components/markets-table/components/AssetNameCell.tsx +++ b/packages/app/src/features/markets/components/markets-table/components/AssetNameCell.tsx @@ -32,7 +32,7 @@ export function AssetNameCell({ token, reserveStatus, 'data-testid': dataTestId )}
    -

    +

    {token.symbol}

    @@ -53,7 +53,7 @@ export function TokenName({ token, className }: TokenNameProps) { return ( -

    +

    {token.name}

    diff --git a/packages/app/src/features/markets/components/summary-tile/components/Tile.tsx b/packages/app/src/features/markets/components/summary-tile/components/Tile.tsx index a74282f94..bf3f3b9be 100644 --- a/packages/app/src/features/markets/components/summary-tile/components/Tile.tsx +++ b/packages/app/src/features/markets/components/summary-tile/components/Tile.tsx @@ -24,7 +24,7 @@ export function Tile({ icon: Icon, title, USDValue, description, 'data-testid':
    Assets in your wallet supported by Spark.
    -
    Include deposits
    +
    Include deposits
    diff --git a/packages/app/src/features/my-portfolio/components/position/Position.tsx b/packages/app/src/features/my-portfolio/components/position/Position.tsx index 75381a69a..50d7ecf5e 100644 --- a/packages/app/src/features/my-portfolio/components/position/Position.tsx +++ b/packages/app/src/features/my-portfolio/components/position/Position.tsx @@ -59,7 +59,7 @@ function Ticks({ ticks }: TicksProps) { {ticks.map(({ label, x }) => (
    - {label &&
    {label}
    } + {label &&
    {label}
    }
    ))}
    @@ -75,8 +75,8 @@ function Deposited({ positionSummary, ticks }: DepositedProps) { return (
    -
    Collateral deposited
    -
    +
    Collateral deposited
    +
    {getPositionFormattedValue(positionSummary?.totalCollateralUSD)}
    @@ -135,8 +135,8 @@ function Borrow({ positionSummary, ticks }: BorrowProps) { return (
    -
    Borrow
    -
    +
    Borrow
    +
    {getPositionFormattedValue(positionSummary?.borrow.current)}
    @@ -186,7 +186,7 @@ function BorrowBar({ positionSummary }: BorrowBarProps) { className="-translate-x-[1px] absolute z-[2] h-7 border-primary border-l-2 pl-2" style={{ left: `${borrow.percents.max}%` }} > -
    max
    +
    max
    You can borrow up to {USD_MOCK_TOKEN.formatUSD(positionSummary.borrow.max)}. diff --git a/packages/app/src/features/savings/components/growing-balance/GrowingBalance.tsx b/packages/app/src/features/savings/components/growing-balance/GrowingBalance.tsx index 6b2d93811..067fab3c4 100644 --- a/packages/app/src/features/savings/components/growing-balance/GrowingBalance.tsx +++ b/packages/app/src/features/savings/components/growing-balance/GrowingBalance.tsx @@ -51,7 +51,7 @@ export function GrowingBalance({ )}
    {savingsTokenWithBalance.token.format(savingsTokenWithBalance.balance, { style: 'auto' })}{' '} diff --git a/packages/app/src/features/savings/components/navbar-item/SavingsAPYBadge.tsx b/packages/app/src/features/savings/components/navbar-item/SavingsAPYBadge.tsx index fd68ac6a8..0399f62d2 100644 --- a/packages/app/src/features/savings/components/navbar-item/SavingsAPYBadge.tsx +++ b/packages/app/src/features/savings/components/navbar-item/SavingsAPYBadge.tsx @@ -21,7 +21,7 @@ export function SavingsAPYBadge({ APY, isLoading, className }: SavingsAPYBadgePr ) : ( APY && ( - + {formatPercentage(APY, { minimumFractionDigits: 0 })} ) diff --git a/packages/app/src/features/savings/components/savings-info-tile/SavingsInfoTile.tsx b/packages/app/src/features/savings/components/savings-info-tile/SavingsInfoTile.tsx index f4fcf4580..6fdbb301e 100644 --- a/packages/app/src/features/savings/components/savings-info-tile/SavingsInfoTile.tsx +++ b/packages/app/src/features/savings/components/savings-info-tile/SavingsInfoTile.tsx @@ -21,7 +21,7 @@ interface LabelProps { function Label({ children, tooltipContent: tooltipText }: LabelProps) { return (
    -
    {children}
    +
    {children}
    {tooltipText && {tooltipText}}
    ) @@ -33,7 +33,7 @@ export interface ValueProps { } function Value({ children, className }: ValueProps) { return ( -

    +

    {children}

    ) diff --git a/packages/app/src/features/savings/components/savings-opportunity/components/Explainer.tsx b/packages/app/src/features/savings/components/savings-opportunity/components/Explainer.tsx index 1e8b1a027..87486c6da 100644 --- a/packages/app/src/features/savings/components/savings-opportunity/components/Explainer.tsx +++ b/packages/app/src/features/savings/components/savings-opportunity/components/Explainer.tsx @@ -29,7 +29,7 @@ export function Explainer({ stablecoinValue, savingsMeta, originChainId }: Expla ))}
    -
    +
    {stablecoinValue ? ( <> You have{' '} diff --git a/packages/app/src/features/savings/components/savings-opportunity/components/SavingsRate.tsx b/packages/app/src/features/savings/components/savings-opportunity/components/SavingsRate.tsx index 18becc858..a53dc8184 100644 --- a/packages/app/src/features/savings/components/savings-opportunity/components/SavingsRate.tsx +++ b/packages/app/src/features/savings/components/savings-opportunity/components/SavingsRate.tsx @@ -16,7 +16,7 @@ export function SavingsRate({ originChainId, APY, savingsMetaItem }: SavingsRate return (
    -
    {savingsMetaItem.rateAcronym} Rate
    +
    {savingsMetaItem.rateAcronym} Rate
    diff --git a/packages/app/src/features/savings/components/stablecoins-in-wallet/StablecoinsInWallet.tsx b/packages/app/src/features/savings/components/stablecoins-in-wallet/StablecoinsInWallet.tsx index 4f51519b3..ba7394e36 100644 --- a/packages/app/src/features/savings/components/stablecoins-in-wallet/StablecoinsInWallet.tsx +++ b/packages/app/src/features/savings/components/stablecoins-in-wallet/StablecoinsInWallet.tsx @@ -36,7 +36,7 @@ export function StablecoinsInWallet({ header: 'Balance', headerAlign: 'right', renderCell: ({ balance, token }) => ( -
    +
    {balance.eq(0) ? '-' : token.format(balance, { style: 'auto' })}
    ), @@ -84,8 +84,8 @@ export function StablecoinsInWallet({
    -
    Convert stablecoins without fees and slippage!
    -
    +
    Convert stablecoins without fees and slippage!
    +
    Use SKY infrastructure to convert between supported stablecoins.
    diff --git a/packages/app/src/features/savings/components/stablecoins-in-wallet/components/TokenCell.tsx b/packages/app/src/features/savings/components/stablecoins-in-wallet/components/TokenCell.tsx index b4b686c85..3e7f85c63 100644 --- a/packages/app/src/features/savings/components/stablecoins-in-wallet/components/TokenCell.tsx +++ b/packages/app/src/features/savings/components/stablecoins-in-wallet/components/TokenCell.tsx @@ -22,7 +22,7 @@ export function TokenCell({ token, migrationInfo }: TokenCellProps) { } return ( -
    +
    {token.symbol}
    diff --git a/packages/app/src/features/savings/components/stablecoins-in-wallet/components/UpgradeTokenButton.tsx b/packages/app/src/features/savings/components/stablecoins-in-wallet/components/UpgradeTokenButton.tsx index 567af2cf4..dfb6d6117 100644 --- a/packages/app/src/features/savings/components/stablecoins-in-wallet/components/UpgradeTokenButton.tsx +++ b/packages/app/src/features/savings/components/stablecoins-in-wallet/components/UpgradeTokenButton.tsx @@ -23,7 +23,7 @@ export function UpgradeTokenButton({
    -
    +
    Upgrade your Savings DAI to{' '} Savings USDS and unlock the full potential of the Sky ecosystem. @@ -63,7 +63,7 @@ function Benefit({ children }: { children: ReactNode }) { return (
    -
    {children}
    +
    {children}
    ) } diff --git a/packages/app/src/features/savings/components/welcome-dialog/WelcomeDialog.tsx b/packages/app/src/features/savings/components/welcome-dialog/WelcomeDialog.tsx index 738146210..105ce0f5f 100644 --- a/packages/app/src/features/savings/components/welcome-dialog/WelcomeDialog.tsx +++ b/packages/app/src/features/savings/components/welcome-dialog/WelcomeDialog.tsx @@ -26,7 +26,7 @@ export function WelcomeDialog({ open, onConfirm, apyImprovement }: WelcomeDialog />

    Welcome USDS, the new upgraded DAI!

    -

    +

    USDS is the new version of DAI, the stablecoin that powers the Sky ecosystem. Upgrading to USDS unlocks additional benefits, providing you with more opportunities to earn rewards within the ecosystem. The upgrade is optional, and you can continue using DAI if you prefer.{' '} diff --git a/packages/app/src/features/topbar/components/topbar-airdrop/TopbarAirdropDropdown.tsx b/packages/app/src/features/topbar/components/topbar-airdrop/TopbarAirdropDropdown.tsx index 70774dc6e..d84372b0e 100644 --- a/packages/app/src/features/topbar/components/topbar-airdrop/TopbarAirdropDropdown.tsx +++ b/packages/app/src/features/topbar/components/topbar-airdrop/TopbarAirdropDropdown.tsx @@ -61,13 +61,13 @@ export function TopbarAirdropDropdown({ {isLoading ? ( ) : ( -

    +
    {formatAirdropAmount({ amount, precision, isGrowing })} {SPK_MOCK_TOKEN.symbol}
    )} - + DAI borrowers with volatile assets and ETH depositors will be eligible for a future ⚡ SPK airdrop. diff --git a/packages/app/src/features/topbar/components/topbar-menu/TopbarMenu.tsx b/packages/app/src/features/topbar/components/topbar-menu/TopbarMenu.tsx index 57958fe67..c1548fa16 100644 --- a/packages/app/src/features/topbar/components/topbar-menu/TopbarMenu.tsx +++ b/packages/app/src/features/topbar/components/topbar-menu/TopbarMenu.tsx @@ -64,7 +64,7 @@ export function TopbarMenu({ Sandbox Mode
    -
    +
    Explore Spark with
    unlimited tokens
    @@ -82,7 +82,7 @@ export function TopbarMenu({ to={links.github} variant="unstyled" external - className="typography-label-6 bg-secondary p-6 text-center text-secondary" + className="typography-label-4 bg-secondary p-6 text-center text-secondary" > Built from {sha} at {buildTime} @@ -109,7 +109,7 @@ export function TopbarMenu({ Sandbox Mode
    -
    +
    Explore Spark with
    unlimited tokens
    @@ -127,7 +127,7 @@ export function TopbarMenu({ to={links.github} variant="unstyled" external - className="typography-label-6 p-5 text-center text-secondary" + className="typography-label-4 p-5 text-center text-secondary" > Built from {sha} at {buildTime} diff --git a/packages/app/src/features/topbar/components/topbar-menu/components/TopbarMenuAirdropItem.tsx b/packages/app/src/features/topbar/components/topbar-menu/components/TopbarMenuAirdropItem.tsx index e10cecb1b..8742f8c5a 100644 --- a/packages/app/src/features/topbar/components/topbar-menu/components/TopbarMenuAirdropItem.tsx +++ b/packages/app/src/features/topbar/components/topbar-menu/components/TopbarMenuAirdropItem.tsx @@ -67,7 +67,7 @@ function TopbarMenuAirdropDialog({