Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Fix/hidden options text (#565)
Browse files Browse the repository at this point in the history
* fix: better text for collapsed sections on side menu

* fix: correct top margin for listed icons on Android

* fix: make the word lower case
  • Loading branch information
vardan-arm committed Mar 2, 2022
1 parent b9ff867 commit be618af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/screens/SideMenu/Listed.styled.ts
@@ -1,9 +1,9 @@
import { StyleSheet } from 'react-native';
import { Platform, StyleSheet } from 'react-native';
import styled from 'styled-components/native';

export const styles = StyleSheet.create({
blogItemIcon: {
marginTop: -6,
marginTop: Platform.OS === 'ios' ? -6 : -3,
},
loadingIndicator: {
alignSelf: 'flex-start',
Expand Down
4 changes: 3 additions & 1 deletion src/screens/SideMenu/SideMenuSection.tsx
Expand Up @@ -41,7 +41,9 @@ export const SideMenuSection: React.FC<Props> = React.memo(props => {
return props.options || [];
}, [props.options]);
const collapsedLabel =
options.length > 0 ? options.length + ' Options' : 'Tap to expand';
options.length > 0
? 'Tap to expand ' + options.length + ' options'
: 'Tap to expand';
return (
<Root>
<Header collapsed={collapsed} onPress={() => setCollapsed(!collapsed)}>
Expand Down

0 comments on commit be618af

Please sign in to comment.