Skip to content

Commit

Permalink
Merge branch 'main' into fix-2804-right-margin-was-to-wide-and-looked…
Browse files Browse the repository at this point in the history
…-broken-compared-to-left-margin
  • Loading branch information
EtherWizard33 committed Oct 22, 2024
2 parents a615305 + f2f84ed commit a165f93
Show file tree
Hide file tree
Showing 53 changed files with 1,738 additions and 3,014 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ module.exports = {
rules: {
// under discussion
'no-unused-vars': 'off',
'react/no-unstable-nested-components': [
'warn',
{
allowAsProps: true,
},
],
},
},
{
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
"cucumberautocomplete.steps": ["wdio/step-definitions/**/*.js"],
"cucumberautocomplete.syncfeatures": "wdio/to/features/*.feature",
"cucumberautocomplete.strictGherkinCompletion": true,
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"javascript.preferences.importModuleSpecifier": "relative",
"typescript.preferences.importModuleSpecifier": "relative"
}
2 changes: 1 addition & 1 deletion app/actions/onboarding/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export function clearOnboardingEvents(): ClearEventsAction {
return {
type: CLEAR_EVENTS,
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const ContractBoxBase = ({
theme: { colors },
} = useStyles(styleSheet, {});

const IconView = ({ onPress, name, size, testID }: IconViewProps) => (
const renderIconView = ({ onPress, name, size, testID }: IconViewProps) => (
<Pressable style={styles.icon} onPress={onPress} testID={testID}>
<Icon color={colors.icon.alternative} name={name} size={size} />
</Pressable>
Expand Down Expand Up @@ -78,20 +78,19 @@ const ContractBoxBase = ({
)}
</View>
<View style={styles.iconContainer}>
<IconView
onPress={onCopyAddress}
name={IconName.Copy}
size={IconSize.Lg}
testID={COPY_ICON_TEST_ID}
/>
{hasBlockExplorer && (
<IconView
name={IconName.Export}
onPress={onExportAddress}
size={IconSize.Md}
testID={EXPORT_ICON_TEST_ID}
/>
)}
{renderIconView({
onPress: onCopyAddress,
name: IconName.Copy,
size: IconSize.Lg,
testID: COPY_ICON_TEST_ID,
})}
{hasBlockExplorer &&
renderIconView({
onPress: onExportAddress,
name: IconName.Export,
size: IconSize.Md,
testID: EXPORT_ICON_TEST_ID,
})}
</View>
</View>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,21 @@ exports[`Component ContractBoxBase should render correctly 1`] = `
}
}
>
<IconView
name="Copy"
<Component
onPress={[Function]}
size="24"
style={
{
"paddingHorizontal": 6,
}
}
testID="copy-icon"
/>
>
<Icon
color="#6a737d"
name="Copy"
size="24"
/>
</Component>
</View>
</View>
`;
Loading

0 comments on commit a165f93

Please sign in to comment.