Skip to content

Commit

Permalink
fix: fix sorting arrow direction in data table (#2435)
Browse files Browse the repository at this point in the history
  • Loading branch information
haxonadora committed Dec 16, 2020
1 parent 6ffb9ae commit 57d6b99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/DataTable/DataTableTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const DataTableTitle = ({
const icon = sortDirection ? (
<Animated.View style={[styles.icon, { transform: [{ rotate: spin }] }]}>
<MaterialCommunityIcon
name="arrow-down"
name="arrow-up"
size={16}
color={theme.colors.text}
direction={I18nManager.isRTL ? 'rtl' : 'ltr'}
Expand Down
4 changes: 2 additions & 2 deletions src/components/__tests__/__snapshots__/DataTable.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ exports[`renders data table title with press handler 1`] = `
]
}
>
</Text>
</View>
<Text
Expand Down Expand Up @@ -760,7 +760,7 @@ exports[`renders data table title with sort icon 1`] = `
]
}
>
</Text>
</View>
<Text
Expand Down

0 comments on commit 57d6b99

Please sign in to comment.