Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@babel/preset-typescript": "^7.26.0",
"@babel/runtime": "^7.26.7",
"@ecency/render-helper": "^2.5.17",
"@ecency/sdk": "^2.3.28",
"@ecency/sdk": "^2.3.32",
"@esteemapp/react-native-autocomplete-input": "^4.2.1",
"@esteemapp/react-native-multi-slider": "^1.1.0",
"@native-html/iframe-plugin": "^2.6.1",
Expand Down
Binary file removed src/assets/hive_spk.png
Binary file not shown.
8 changes: 0 additions & 8 deletions src/components/atoms/assetIcon/container/assetIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ import { View, ViewStyle } from 'react-native';
import { Image as ExpoImage } from 'expo-image';
import styles from '../styles/assetIcon.styles';
import HIVE_ENGINE_ICON from '../../../../assets/hive_engine.png';
import HIVE_SPK_ICON from '../../../../assets/hive_spk.png';
import HIVE_CHAIN_ICON from '../../../../assets/chain-icon.png';

interface AssetIconProps {
iconUrl?: string;
isEngine?: boolean;
isSpk?: boolean;
isChain?: boolean;
iconSize?: number;
containerStyle?: ViewStyle;
Expand All @@ -18,7 +16,6 @@ interface AssetIconProps {
export const AssetIcon = ({
iconUrl,
isEngine,
isSpk,
isChain,
containerStyle,
iconSize,
Expand All @@ -41,11 +38,6 @@ export const AssetIcon = ({
<ExpoImage style={styles.hiveEngineLogo} contentFit="contain" source={HIVE_ENGINE_ICON} />
</View>
)}
{isSpk && (
<View style={styles.hiveEngineWrapper}>
<ExpoImage style={styles.hiveEngineLogo} contentFit="contain" source={HIVE_SPK_ICON} />
</View>
)}
{isChain && (
<View style={styles.hiveEngineWrapper}>
<ExpoImage style={styles.hiveEngineLogo} contentFit="contain" source={HIVE_CHAIN_ICON} />
Expand Down
25 changes: 0 additions & 25 deletions src/components/selectionList/container/selectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,6 @@ export const SelectionList = ({
const totalSel = selectionRef.current.length;
const item = sortedList[from];

// const _obj = {
// id: item.symbol,
// symbol: item.symbol,
// isEngine: item.isEngine || false,
// isSpk: item.isSpk || false,
// notCrypto: false,
// };

// console.log('change order', item.symbol, from, to, 'total:', totalSel);

if (from >= totalSel && to <= totalSel) {
// insert in set at to
selectionRef.current.splice(to, 0, item.id);
Expand Down Expand Up @@ -125,13 +115,6 @@ export const SelectionList = ({
selectionRef.current.splice(index, 1);
} else {
selectionRef.current.push(item.id);
// {
// id: key,
// symbol: key,
// isEngine: item.isEngine || false,
// isSpk: item.isSpk || false,
// notCrypto: false,
// });
}

_updateSortedList();
Expand All @@ -144,14 +127,6 @@ export const SelectionList = ({
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<CheckBox clicked={_onPress} isChecked={isSelected} />
{item.iconElement && item.iconElement}
{/* <AssetIcon
id={item.symbol}
containerStyle={styles.assetIconContainer}
iconUrl={item.iconUrl}
isEngine={item.isEngine}
isSpk={item.isSpk}
iconSize={24}
/> */}
<Text style={styles.informationText}>{item.label}</Text>
</View>
<TouchableWithoutFeedback onPressIn={drag} style={styles.dragBtnContainer}>
Expand Down
43 changes: 12 additions & 31 deletions src/components/transferAccountSelector/transferAccountSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import UserAvatar from '../userAvatar';

// Styles
import styles from './transferAccountSelectorStyles';
import { Market } from '../../providers/hive-spk/hiveSpk.types';
import { SPK_NODE_ECENCY } from '../../providers/hive-spk/hiveSpk';
import { toastNotification } from '../../redux/actions/uiAction';

export interface TransferAccountSelectorProps {
Expand All @@ -32,7 +30,6 @@ export interface TransferAccountSelectorProps {
setIsUsernameValid: (value: boolean) => void;
memo: string;
setMemo: (value: string) => void;
spkMarkets: Market[];
getRecurrentTransferOfUser: (username: string) => string;
allowMultipleDest?: boolean;
badActors?: Set<string>;
Expand All @@ -54,7 +51,6 @@ const TransferAccountSelector = ({
setIsUsernameValid,
memo,
setMemo,
spkMarkets,
getRecurrentTransferOfUser,
allowMultipleDest,
badActors,
Expand All @@ -67,8 +63,6 @@ const TransferAccountSelector = ({
switch (transferType) {
case TransferTypes.CONVERT:
case TransferTypes.UNSTAKE:
case TransferTypes.POWER_UP_SPK:
case TransferTypes.POWER_DOWN_SPK:
return true;
default:
return false;
Expand Down Expand Up @@ -211,31 +205,18 @@ const TransferAccountSelector = ({
);

const _destinationInput = !destinationLocked ? (
transferType === TransferTypes.DELEGATE_SPK ? (
<TransferFormItem
label={intl.formatMessage({ id: 'transfer.to' })}
rightComponent={() =>
_renderDropdown(
spkMarkets.map((market) => market.name),
SPK_NODE_ECENCY,
_handleOnDestinationChange,
)
}
/>
) : (
<TransferFormItem
label={intl.formatMessage({ id: 'transfer.to' })}
rightComponent={() =>
_renderInput(
intl.formatMessage({ id: 'transfer.to_placeholder' }),
'destination',
'default',
false,
)
}
containerStyle={styles.elevate}
/>
)
<TransferFormItem
label={intl.formatMessage({ id: 'transfer.to' })}
rightComponent={() =>
_renderInput(
intl.formatMessage({ id: 'transfer.to_placeholder' }),
'destination',
'default',
false,
)
}
containerStyle={styles.elevate}
/>
) : null;

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,7 @@ const TransferAmountInputSection: React.FC<TransferAmountInputSectionProps> = ({
{(transferType === TransferTypes.ECENCY_POINT_TRANSFER ||
transferType === TransferTypes.TRANSFER ||
transferType === TransferTypes.RECURRENT_TRANSFER ||
transferType === TransferTypes.TRANSFER_TO_SAVINGS ||
transferType === TransferTypes.TRANSFER_SPK ||
transferType === TransferTypes.TRANSFER_LARYNX) && (
transferType === TransferTypes.TRANSFER_TO_SAVINGS) && (
<TransferFormItem
label={intl.formatMessage({ id: 'transfer.memo' })}
rightComponent={() =>
Expand Down
20 changes: 0 additions & 20 deletions src/config/locales/ar-SA.json
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,6 @@
"low_liquidity": "سيولة منخفضة!",
"promote": "ترويج",
"undelegate_engine": "إلغاء تفويض",
"total_larynx_power": "القوة الإجمالية",
"total_hive_power": "إجمالي المُجمَّد",
"checkin_extra_desc": "الاستخدام المستمر للتطبيق يمنحك فرصا إضافية لكسب المزيد من النقاط، كن أكثر نشاطا و إكسب المزيد.",
"transfer_to_vesting": "تجميد",
Expand All @@ -1053,7 +1052,6 @@
"mining_lottery": "تم الفوز باليانصيب",
"checkin": "تحقق في",
"tokens_transfer": "الرموز المحوّلة",
"delegating_larynx_power": "تفويض قوة",
"outgoing_transfer_title": "تحويل/إهداء",
"manage_assets": "إضافة & حذف الأصول",
"selected_assets": "أصول مختاره",
Expand Down Expand Up @@ -1093,7 +1091,6 @@
"hideChart": "إخفاء مخطط الأسعار",
"openAnalytics": "فتح تحليلات الرصيد",
"tokens_enableStaking": "تمكين التحصيص",
"power_up_spk": "تجميد",
"nft_addProperty": "تم إضافة خاصية للرمز الغير قابل للاستبدال",
"nft_updateMetadata": "تم تحديث بيانات التعريف للرمز الغير قابل للاستبدال",
"login_title": "نقاط لتسجيل الدخول",
Expand Down Expand Up @@ -1132,16 +1129,13 @@
"dropdown_boost": "تعزيز",
"dropdown_ai_image": "صورة بالذكاء الاصطناعي",
"tokens_undelegateStart": "بَدْء إلغاء التفويض",
"delegated_larynx_power": "القوة الممنوحة",
"undelegate": "إلغاء التفويض",
"pending_requests": "طلبات معلقة",
"checkin_title": "نقاط لنبض القلب",
"transfer_spk": "تحويل",
"fill_vesting_withdraw": "تم تنفيذ إلغاء التجميد",
"tokens_issue": "الرموز المصدرة",
"tokens_delegate": "الرموز المفوّضة",
"nft_addAuthorizedIssuingAccounts": "تم إضافة حسابات الإصدار المعتمدة للرمز الغير قابل للاستبدال",
"spkcc_power_grant": "منح القوة",
"delegation_desc": "اكسب النقاط كل يوم مقابل تفويضك",
"get_boost": "احصل على تعزيز",
"post": "منشور",
Expand Down Expand Up @@ -1179,7 +1173,6 @@
},
"open_order": "طلب مفتوح",
"vote": "تصويت",
"lock_liquidity_spk": "قفل على السيولة",
"escrow_release": "إصدار الضمان",
"referral_title": "مكافآت الإحالة",
"to_placeholder": "إسم المستخدم",
Expand Down Expand Up @@ -1220,14 +1213,12 @@
"market_cancel": "تم إلغاء الطلب",
"nft_transfer": "رموز غير قابلة للاستبدال محوّلة",
"escrow_transfer": "تحويل بضمان",
"spkcc_power_down": "إلغاء التجميد",
"nftmarket_enableMarket": "تمكين السوق لشعار الرمز الغير قابل للاستبدال",
"market_placeOrder": "تم تأكيد الطلب",
"nft_create": "تم إنشاء شعار رمز غير قابل للاستبدال",
"delegation_title": "مكافأة التفويض",
"nft_updateName": "تم تحديث اسم الرمز الغير قابل للاستبدال",
"market_buyRemaining": "تم تحويل الرموز المتبقية (شراء)",
"transfer_larynx_spk": "تحويل",
"referral": "الإحالة",
"received_hive_power": "التفويضات الواردة",
"nft_enableDelegation": "تمكين التفويض للرمز الغير قابل للاستبدال",
Expand All @@ -1245,10 +1236,8 @@
"information": "هل أنت متأكد من السير بالعملية؟",
"incoming_transfer_description": "",
"transfer_token": "تحويل",
"spkcc_spk_send": "تحويل",
"stake": "تجميد",
"fill_order": "ملئ الطلب",
"spkcc_power_up": "تجميد",
"vote_value": "قيمة التصويت",
"nft_burn": "رموز غير قابلة للاستبدال محترقة",
"delegated_hive_power": "التفويضات الصادرة",
Expand All @@ -1274,7 +1263,6 @@
"withdraw_hbd": "سحب المدخرات",
"convert_request": "طلب تحويل",
"cancel_transfer_from_savings": "إلغاء من المدخرات",
"power_down_spk": "إلغاء التجميد",
"comment_desc": "يساعدك كل تعليق تدلي به على تنمية جمهورك وتكوين صداقات ، ولكنه يكسبك أيضًا 5 نقاط.",
"reblog_title": "نقاط لإعادة النشر",
"power_up": "إلى استحقاق",
Expand All @@ -1286,12 +1274,10 @@
"claim_reward_balance": "الحصول على المكافأة ",
"hivepegged_buy": "Hive المودعة",
"boost_account": "تعزيز",
"spkcc_send": "تحويل",
"savings_withdrawal": "سحوبات معلقة",
"savings": "المدخرات",
"points": "تحويل Points",
"nft_issueMultiple": "رموز غير قابلة للاستبدال متعددة صادرة",
"delegate_spk": "تفويض",
"receive": "استلام",
"comment_benefactor_reward": "مكافأة المستفيد"
},
Expand Down Expand Up @@ -1361,7 +1347,6 @@
"amount_desc": "الرصيد",
"account_detail_subhead": "أدخل اسم المستخدم لتفويض قوة HIVE",
"transfer_to_savings": "النقل إلى المدخرات",
"lock_liquidity_spk": "قُفْل سيولة LARYNX",
"amount_hp": "المبلغ (HP)",
"information": "هل تريد متابعة العملية؟",
"to_placeholder": "إسم المستخدم",
Expand Down Expand Up @@ -1389,15 +1374,13 @@
"invalid_amount_desc": "الرجاء إدخال مبلغ صالح",
"to": "إلى",
"sc_power_down_error": "لم يتم تنفيذ هذه الميزة لتسجيل دخول Hivesigner، حتى الآن",
"transfer_spk": "تحويل SPK",
"power_down_amount_head": "سحب المبلغ",
"memo": "مذكرة",
"stop": "إيقاف",
"delete_recurrent_transfer": "حذف التحويل المتكرر ",
"withdraw_hbd": "سحب دولار HIVE",
"executions_placeholder": "عدد التكرارات",
"already_delegated": "تفويض قوة LARYNX ",
"delegate_spk": "تفويض قوة LARYNX",
"delegat_detail_head": "تفاصيل التفويض",
"new_amount": "مبلغ جديد",
"account_select_description": "العمليات المتعلقة بالأموال لا رجعة فيها، تأكد من صحة اسم المستخدم",
Expand All @@ -1421,11 +1404,8 @@
"confirm_summary_para": "سيؤدي هذا إلى استبدال التفويض السابق لـ {prev} HP لهذا المستخدم.",
"points": "تحويل Points",
"delegate": "تفويض",
"transfer_larynx_spk": "تحويل LARYNX",
"amount_select_title": "تفاصيل الإجراء",
"stake_engine": "رهن الرمز",
"power_down_spk": "إلغاء تجميد LARYNX",
"power_up_spk": "تجميد LARYNX",
"amount_select_desc_limit": " ويجب أن يكون أكبر من 0.001",
"undelegate_engine": "إلغاء تفويض الرمز",
"to_bad_actor": "توخَّ الحذر عند الإرسال إلى هذا الحساب. يرجى التحقق مرة أخرى من التهجئة تجنبًا لاحتمالية التصيّد.",
Expand Down
Loading
Loading