Skip to content

Commit

Permalink
chore: bump prettier from 3.3.2 to 3.3.3 (#2448)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Trung-Tin Pham <[email protected]>
  • Loading branch information
dependabot[bot] and AtelyPham authored Jul 22, 2024
1 parent 3f7904b commit ed1e46d
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/stats-dapp/src/containers/KeygenTable/KeygenTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export const KeygenTable: FC = () => {
column.getFacetedMinMaxValues()?.[0] ?? 0,
column.getFacetedMinMaxValues()?.[1] ?? 0,
]
: column.getFacetedMinMaxValues() ?? [0, 0],
: (column.getFacetedMinMaxValues() ?? [0, 0]),
[],
);

Expand Down
2 changes: 1 addition & 1 deletion apps/tangle-dapp/app/restake/deposit/ActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function ActionButton({
isDisabled={!isValid || displayError !== undefined}
isFullWidth
>
{displayError ?? operatorAccountId
{(displayError ?? operatorAccountId)
? 'Deposit + Delegate'
: 'Deposit'}
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const IndependentAllocationInput: FC<IndependentAllocationInputProps> = ({
title="Total Restake"
actions={actions}
dropdownBody={hasDropdownBody ? dropdownBody : undefined}
errorMessage={validate ? errorMessage ?? undefined : undefined}
errorMessage={validate ? (errorMessage ?? undefined) : undefined}
chipText={service ?? 'Select role'}
chipColor={
service !== null ? getChipColorOfServiceType(service) : undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const RecentTxContainer: FC = () => {
const explorerUrl = useMemo(() => {
return isEvm
? network.evmExplorerUrl
: network.nativeExplorerUrl ?? network.polkadotJsDashboardUrl;
: (network.nativeExplorerUrl ?? network.polkadotJsDashboardUrl);
}, [
isEvm,
network.evmExplorerUrl,
Expand Down
2 changes: 1 addition & 1 deletion apps/tangle-dapp/context/BridgeTxQueueContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const getTxQueueFromLocalStorage = (
txQueueByAccFromLocalStorage: Optional<TxQueueByAccount> | null,
) => {
const bridgeTxQueueByAcc = txQueueByAccFromLocalStorage
? txQueueByAccFromLocalStorage.value ?? null
? (txQueueByAccFromLocalStorage.value ?? null)
: null;

const cachedTxQueue = bridgeTxQueueByAcc?.[activeAccountAddress] ?? [];
Expand Down
2 changes: 1 addition & 1 deletion apps/tangle-dapp/hooks/useExplorerUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const useExplorerUrl = () => {
? explorerUrl_
: isEvm
? network.evmExplorerUrl
: network.nativeExplorerUrl ?? network.polkadotJsDashboardUrl;
: (network.nativeExplorerUrl ?? network.polkadotJsDashboardUrl);

if (explorerUrl === undefined) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion libs/abstract-api-provider/src/vanchor/bridge-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export abstract class BridgeApi<
getTokenTarget(typedChainId: number): string | null {
const activeBridgeAsset = this.getCurrency();
return activeBridgeAsset
? activeBridgeAsset.getAddress(typedChainId) ?? null
? (activeBridgeAsset.getAddress(typedChainId) ?? null)
: null;
}

Expand Down
4 changes: 3 additions & 1 deletion libs/api-provider-environment/src/store/modules/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const initState: UIData = {
breadcrumb: [],
pageTitle: '__empty',
subMenu: null,
theme: isBrowser() ? window.localStorage.getItem('_theme') ?? 'dark' : 'dark',
theme: isBrowser()
? (window.localStorage.getItem('_theme') ?? 'dark')
: 'dark',
};

const reducer = (state: UIData, action: UIAction): UIData => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const FeeDetails = forwardRef<HTMLDivElement, FeeDetailsProps>(
{isTotalLoading ? (
<SkeletonLoader className="w-14 dark:bg-mono-140" />
) : (
totalFeeCmp ?? (
(totalFeeCmp ?? (
<>
<Typography variant="body1" fw="bold">
{typeof totalFee === 'number'
Expand All @@ -119,7 +119,7 @@ const FeeDetails = forwardRef<HTMLDivElement, FeeDetailsProps>(
<TokenIcon name={totalFeeToken} className="ml-2" />
)}
</>
)
))
)}

<ArrowDropDownFill
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const DepositCard = forwardRef<HTMLDivElement, DepositCardProps>(
{buttonProps.children}
</Typography>
) : (
buttonProps.children ?? 'Deposit'
(buttonProps.children ?? 'Deposit')
)}
</Button>
) : (
Expand Down
2 changes: 1 addition & 1 deletion libs/webb-ui-components/src/hooks/useDarkMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function useDarkMode(
if (!isBrowser()) return;

const _nextThemeMode =
nextThemeMode ?? theme === 'dark' ? 'light' : 'dark';
(nextThemeMode ?? theme === 'dark') ? 'light' : 'dark';

if (_nextThemeMode === theme) return;

Expand Down
11 changes: 10 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37807,7 +37807,7 @@ __metadata:
languageName: node
linkType: hard

"prettier-fallback@npm:prettier@^3, prettier@npm:^3.1.1, prettier@npm:^3.2.5":
"prettier-fallback@npm:prettier@^3":
version: 3.3.2
resolution: "prettier@npm:3.3.2"
bin:
Expand All @@ -37816,6 +37816,15 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^3.1.1, prettier@npm:^3.2.5":
version: 3.3.3
resolution: "prettier@npm:3.3.3"
bin:
prettier: bin/prettier.cjs
checksum: 10c0/b85828b08e7505716324e4245549b9205c0cacb25342a030ba8885aba2039a115dbcf75a0b7ca3b37bc9d101ee61fab8113fc69ca3359f2a226f1ecc07ad2e26
languageName: node
linkType: hard

"pretty-bytes@npm:^5.6.0":
version: 5.6.0
resolution: "pretty-bytes@npm:5.6.0"
Expand Down

0 comments on commit ed1e46d

Please sign in to comment.