-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update uikit package.json (#7819)
<!-- Before opening a pull request, please read the [contributing guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md) first --> <!-- copilot:all --> ### <samp>🤖 Generated by Copilot at ae57c60</samp> ### Summary 📦🛠️🌟 <!-- 1. 📦 for updating the package version and fixing the repository field, which are both related to the package metadata and distribution. 2. 🛠️ for simplifying the prepublish script and removing some unnecessary dependencies, which are both related to the package maintenance and development. 3. 🌟 for improving the uikit components, which is related to the package functionality and user experience. --> Update uikit package and fix repository field. This pull request enhances the uikit package by upgrading its version, removing unused dependencies, and fixing the repository field to point to the correct GitHub URL. It also simplifies the prepublish script to use yarn instead of pnpm. > _`uikit` updated_ > _fixes and simplifications_ > _autumn of cleaning_ ### Walkthrough * Increment uikit package version to 0.63.3 ([link](https://github.com/pancakeswap/pancake-frontend/pull/7819/files?diff=unified&w=0#diff-cb0a1990ba52670ab2c56f831e950ca6447a9ca43ab7028565a66d0defd034d6L3-R3)) * Update repository field to point to pancake-frontend ([link](https://github.com/pancakeswap/pancake-frontend/pull/7819/files?diff=unified&w=0#diff-cb0a1990ba52670ab2c56f831e950ca6447a9ca43ab7028565a66d0defd034d6L33-R33)) * Replace prepublishOnly script with build:uikit command ([link](https://github.com/pancakeswap/pancake-frontend/pull/7819/files?diff=unified&w=0#diff-cb0a1990ba52670ab2c56f831e950ca6447a9ca43ab7028565a66d0defd034d6L47-R47)) * Remove unused @pancakeswap/farms package from peerDependencies and dependencies ([link](https://github.com/pancakeswap/pancake-frontend/pull/7819/files?diff=unified&w=0#diff-cb0a1990ba52670ab2c56f831e950ca6447a9ca43ab7028565a66d0defd034d6L54), [link](https://github.com/pancakeswap/pancake-frontend/pull/7819/files?diff=unified&w=0#diff-cb0a1990ba52670ab2c56f831e950ca6447a9ca43ab7028565a66d0defd034d6L133-R134)) * Remove unused viem package from devDependencies ([link](https://github.com/pancakeswap/pancake-frontend/pull/7819/files?diff=unified&w=0#diff-cb0a1990ba52670ab2c56f831e950ca6447a9ca43ab7028565a66d0defd034d6L133-R134)) --------- Co-authored-by: chefilip <[email protected]>
- Loading branch information
Showing
171 changed files
with
3,536 additions
and
3,628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 2 additions & 12 deletions
14
apps/web/src/views/BuyCrypto/components/OnRampCurrencySelect/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
packages/uikit/src/components/CurrencyInput/index.stories.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { formatBigInt } from './formatBalance' | ||
import { parseUnits } from './viem/parseUnits' | ||
|
||
export const displayBalance = ({ | ||
balance, | ||
decimals, | ||
isBalanceZero, | ||
}: { | ||
balance: `${number}` | ||
decimals: number | ||
isBalanceZero: boolean | ||
}) => { | ||
if (isBalanceZero) { | ||
return '0' | ||
} | ||
|
||
const balanceUnits = parseUnits(balance, decimals) | ||
return formatBigInt(balanceUnits, decimals, decimals) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copy from viem package to avoid unneessary dependency | ||
export function formatUnits(value: bigint, decimals: number) { | ||
let display = value.toString() | ||
|
||
const negative = display.startsWith('-') | ||
if (negative) display = display.slice(1) | ||
|
||
display = display.padStart(decimals, '0') | ||
|
||
let [integer, fraction] = [display.slice(0, display.length - decimals), display.slice(display.length - decimals)] | ||
fraction = fraction.replace(/(0+)$/, '') | ||
integer = integer || '0' | ||
|
||
return `${negative ? '-' : ''}${integer}${fraction ? `.${fraction}` : ''}` | ||
} |
Oops, something went wrong.
d9d3159
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
uikit – ./packages/uikit
uikit-git-develop.pancake.run
uikit.pancake.run