Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
runjuu committed Dec 19, 2023
1 parent 9df3dcf commit b351221
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function WalletClaimCSB({
: false;
const tweetContent = account
? getTweetContent?.(account) ||
`Requesting $CSB funds from the Faucet on the #Crossbell blockchain. Address: ${account?.address}. https://faucet.crossbell.io/`
`Requesting $CSB funds from the Faucet on the #Crossbell blockchain. Address: ${account?.address}. https://faucet.crossbell.io/`
: "";
const tweetContentNode =
(account && getTweetContentNode?.(account)) || tweetContent;
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-kit/src/create-wagmi-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function createWagmiConfig({
showQrModal: false,
projectId: walletConnectV2ProjectId,
},
})
})
: null,
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export function InputEmailToRegister1() {
cursor: store.computed.isPending
? "progress"
: store.computed.canSendCode
? "pointer"
: "not-allowed",
? "pointer"
: "not-allowed",
}}
onClick={() => store.sendCode()}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export function InputEmailToResetPassword1() {
cursor: store.computed.isPending
? "progress"
: store.computed.canSendCode
? "pointer"
: "not-allowed",
? "pointer"
: "not-allowed",
}}
onClick={() => store.sendCode()}
>
Expand Down
4 changes: 2 additions & 2 deletions packages/connect-kit/src/modules/connect-button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ export function ConnectButton({ children }: ConnectButtonProps): JSX.Element {
account,
displayAddress:
account?.type === "email" ? account.email : account?.address,
}
}
: {
isConnected: false,
ssrReady,
account,
displayAddress: null,
},
},
{
connect: connectModal.show,
disconnect: disconnectModal.show,
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-kit/src/scenes/mint-character/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function useMintModel({
avatar: null,
handle: form.handle,
username: form.username,
},
},
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export const browserWallet = (connector?: InjectedConnector): Wallet | null => {
return { connector };
},
icon: <WalletIcon className={styles.icon} />,
}
}
: null;
};
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export const metaMaskWallet = (
return isAndroid()
? uri
: isIOS()
? `metamask://wc?uri=${encodeURIComponent(uri)}`
: `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
? `metamask://wc?uri=${encodeURIComponent(uri)}`
: `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
},
};
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export const okxWallet = (connector?: OKXConnector): Wallet | null => {
installed: installed,
icon: <OKXIcon className={styles.icon} />,
createConnector: () => ({ connector }),
}
}
: null;
};
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ export function useAccountMiraBalance(): UseAccountMiraBalanceResult {
? getCharacterMiraBalance({
contract,
characterId: account.characterId,
})
})
: address
? getAddressMiraBalance({
? getAddressMiraBalance({
contract,
address: address!,
})
: null,
})
: null,
{ enabled: !!address || !!account?.characterId },
);

Expand Down
4 changes: 2 additions & 2 deletions packages/react-account/src/hooks/mira/use-tip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export const useTip = createAccountTypeBasedMutationHooks<void, UseTipOptions>(
...options,
toNoteId,
feeReceiver,
})
})
: contract.tips.tipCharacterForNote({
...options,
toNoteId,
});
});
} else {
return feeReceiver
? contract.tipsWithFee.tipCharacter({ ...options, feeReceiver })
Expand Down
2 changes: 1 addition & 1 deletion packages/react-account/src/hooks/use-post-note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const usePostNote = createAccountTypeBasedMutationHooks<

const canUseSiwe = specifiedCharacterId
? // TODO: Check if the specified characterId belongs to the current wallet, not just the one currently in use.
specifiedCharacterId === account?.characterId
specifiedCharacterId === account?.characterId
: true;

if (siwe && canUseSiwe) {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/base-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ export function BaseModal({
</div>
</BaseModalContext.Provider>,
document.body,
)
)
: null;
}
2 changes: 1 addition & 1 deletion packages/ui/src/components/dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ export function Dialog({
{children}
</div>,
document.body,
)
)
: null;
}

1 comment on commit b351221

@vercel
Copy link

@vercel vercel bot commented on b351221 Dec 19, 2023

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:

crossbell-universe – ./

crossbell-universe-git-main-crossbell.vercel.app
crossbell-dev.vercel.app
crossbell-universe-crossbell.vercel.app

Please sign in to comment.