Format code (prettier)

This commit is contained in:
Nicola Benaglia 2025-05-17 00:25:13 +02:00
parent b0274b4cb7
commit b6f8b190c0
5 changed files with 612 additions and 482 deletions

View File

@ -216,7 +216,9 @@ export const DownloadWallet = ({
</Box>
}
/>
<Spacer height="20px" />
{!keepCurrentPassword && (
<>
<CustomLabel htmlFor="standard-adornment-password">
@ -226,11 +228,13 @@ export const DownloadWallet = ({
</CustomLabel>
<Spacer height="5px" />
<PasswordField
id="standard-adornment-password"
value={newPassword}
onChange={(e) => setNewPassword(e.target.value)}
/>
<Spacer height="20px" />
</>
)}

View File

@ -351,7 +351,7 @@ export const GroupAnnouncements = ({
}
};
const getAnnouncements = React.useCallback(
const getAnnouncements = useCallback(
async (selectedGroup, isPrivate) => {
try {
const offset = 0;
@ -387,7 +387,7 @@ export const GroupAnnouncements = ({
[secretKey]
);
React.useEffect(() => {
useEffect(() => {
if (!secretKey && isPrivate) return;
if (
selectedGroup &&
@ -432,7 +432,7 @@ export const GroupAnnouncements = ({
const theme = useTheme();
const checkNewMessages = React.useCallback(async () => {
const checkNewMessages = useCallback(async () => {
try {
const identifier = `grp-${selectedGroup}-anc-`;
const url = `${getBaseApiReact()}${getArbitraryEndpointReact()}?mode=ALL&service=DOCUMENT&identifier=${identifier}&limit=20&includemetadata=false&offset=${0}&reverse=true&prefix=true`;

View File

@ -37,7 +37,8 @@ export const QortPayment = ({ balance, show, onSuccess, defaultPaymentTo }) => {
setSendPaymentError('Please enter your wallet password');
return;
}
const fee = await getFee('PAYMENT');
const fee = await getFee('PAYMENT'); // TODO translate
await show({
message: `Would you like to transfer ${Number(paymentAmount)} QORT?`,
@ -148,7 +149,7 @@ export const QortPayment = ({ balance, show, onSuccess, defaultPaymentTo }) => {
<Spacer height="6px" />
<CustomLabel htmlFor="standard-adornment-password">
Confirm Wallet Password
Confirm wallet password
</CustomLabel>
<Spacer height="5px" />

File diff suppressed because it is too large Load Diff

View File

@ -228,5 +228,5 @@ export const CustomLabel = styled(InputLabel)(({ theme }) => ({
fontFamily: 'Inter',
fontSize: '15px',
fontWeight: 400,
lineHeight: '12px',
lineHeight: '24px',
}));