Skip to content

Commit

Permalink
remove debug layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Jan 6, 2025
1 parent d04f5b1 commit 0783d5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
10 changes: 4 additions & 6 deletions src/components/DropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ImageSourcePropType, ImageURISource } from 'react-native';
import type { SFSymbols5_0 } from 'sf-symbols-typescript';
import type { DropdownMenuContentProps } from '@radix-ui/react-dropdown-menu';
import { ButtonPressAnimation } from './animations';
import { DebugLayout, HitSlop } from '@/design-system';
import { HitSlop } from '@/design-system';

type ExtendedDropdownMenuTriggerProps = ComponentProps<typeof DropdownMenuPrimitive.Trigger> & {
hitSlop?: number;
Expand All @@ -20,11 +20,9 @@ export const DropdownMenuTrigger = DropdownMenuPrimitive.create<ExtendedDropdown
// TODO: This hitslop isn't working properly...
return (
<DropdownMenuPrimitive.Trigger {...props} style={[props.style, { padding: props.hitSlop ?? 0 }]}>
<DebugLayout>
<ButtonPressAnimation testID={props.testID}>
<HitSlop space={{ custom: props.hitSlop ?? 0 }}>{props.children}</HitSlop>
</ButtonPressAnimation>
</DebugLayout>
<ButtonPressAnimation testID={props.testID}>
<HitSlop space={{ custom: props.hitSlop ?? 0 }}>{props.children}</HitSlop>
</ButtonPressAnimation>
</DropdownMenuPrimitive.Trigger>
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/cards/EthCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Inline, Stack, Text, AccentColorProvider, Bleed, DebugLayout } from '@/design-system';
import { Box, Inline, Stack, Text, AccentColorProvider, Bleed } from '@/design-system';
import { useTheme } from '@/theme';
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { GenericCard } from './GenericCard';
Expand Down
2 changes: 0 additions & 2 deletions src/components/floating-emojis/FloatingEmojis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import FloatingEmoji from './FloatingEmoji';
import GravityEmoji from './GravityEmoji';
import { useTimeout } from '@/hooks';
import { position } from '@/styles';
import { DebugLayout } from '@/design-system';
import { DEVICE_HEIGHT, DEVICE_WIDTH } from '@/utils/deviceUtils';
import { AbsolutePortal } from '../AbsolutePortal';

interface Emoji {
Expand Down

0 comments on commit 0783d5d

Please sign in to comment.