Skip to content
Open
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
8 changes: 4 additions & 4 deletions docs/code-standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -772,12 +772,12 @@ const styles = StyleSheet.create({

// bad
function Title({style, value}) {
retrun <Text style={[styles.title, style]} >{value}<Text/>
return <Text style={[styles.title, style]} >{value}<Text/>
}

// good
function Title({style, value}) {
retrun <Text style={StyleSheet.flatten([styles.title, style])} >{value}<Text/>
return <Text style={StyleSheet.flatten([styles.title, style])} >{value}<Text/>
}
```

Expand All @@ -788,7 +788,7 @@ function Title({style, value}) {
function Title({style, value}) {
const insets = useSafeAreaInsets()

retrun (
return (
<Text
style={{
fontFamily: 'some_font'
Expand All @@ -807,7 +807,7 @@ const TITLE_PADDING_TOP = 15
function Title({style, value}) {
const insets = useSafeAreaInsets()

retrun (
return (
<Text
style={[
styles.title,
Expand Down
2 changes: 1 addition & 1 deletion src/components/token-viewer/token-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const TokenViewer = observer(
const _wallet = Wallet.getById(address);
const tokens = data[address].filter(token => {
const provider = Provider.getByEthChainId(token.chain_id);
// hide tokens for unsupport Tron wallets
// hide tokens for unsupported Tron wallets
if (provider?.isTron && !_wallet?.isSupportTron) {
return false;
}
Expand Down