MCPcopy
hub / github.com/BlueWallet/BlueWallet / WalletGroupComponent

Function WalletGroupComponent

components/ManageWalletsListItem.tsx:271–412  ·  view source on GitHub ↗
({
  wallet,
  transactions,
  addresses,
  state,
  navigateToWallet,
  navigateToAddress,
  renderHighlightedText,
})

Source from the content-addressed store, hash-verified

269}
270
271const WalletGroupComponent: React.FC<WalletGroupProps> = ({
272 wallet,
273 transactions,
274 addresses,
275 state,
276 navigateToWallet,
277 navigateToAddress,
278 renderHighlightedText,
279}) => {
280 const { colors, dark } = useTheme();
281 const { direction } = useLocale();
282 const [expanded] = useState(true);
283 const fadeAnim = useRef(new Animated.Value(0)).current;
284 const hdElectrum = getHdElectrumWallet(wallet);
285
286 useEffect(() => {
287 Animated.timing(fadeAnim, {
288 toValue: 1,
289 duration: 300,
290 useNativeDriver: true,
291 }).start();
292 }, [fadeAnim]);
293
294 const cardRadius = 16;
295 const cardShadowStyle: ViewStyle = {
296 marginHorizontal: 16,
297 marginVertical: 10,
298 borderRadius: cardRadius,
299 ...Platform.select({
300 ios: {
301 shadowColor: '#000',
302 shadowOffset: { width: 0, height: 1 },
303 shadowOpacity: 0.1,
304 shadowRadius: 4,
305 },
306 android: {
307 elevation: 2,
308 },
309 }),
310 };
311
312 const cardBorderColor = dark ? colors.lightBorder : colors.borderTopColor;
313
314 const cardInnerStyle: ViewStyle = {
315 borderRadius: cardRadius,
316 overflow: 'hidden' as const,
317 backgroundColor: colors.elevated,
318 borderWidth: StyleSheet.hairlineWidth,
319 borderColor: cardBorderColor,
320 };
321
322 const childItemsContainerStyle = {
323 backgroundColor: colors.elevated,
324 };
325
326 const childItemStyle = (): ViewStyle => ({
327 backgroundColor: colors.elevated,
328 });

Callers

nothing calls this directly

Calls 6

useThemeFunction · 0.90
getHdElectrumWalletFunction · 0.85
getWalletIconImageFunction · 0.85
childItemStyleFunction · 0.85
getIDMethod · 0.45

Tested by

no test coverage detected