diff --git a/src/components/ListButton.tsx b/src/components/ListButton.tsx index 7d32a8e..12402d0 100644 --- a/src/components/ListButton.tsx +++ b/src/components/ListButton.tsx @@ -16,7 +16,7 @@ const Container = styled.TouchableOpacity` const ListButton: React.FC = ({ children, ...props }) => { return ( - + {children} diff --git a/src/screens/Music/stacks/Albums.tsx b/src/screens/Music/stacks/Albums.tsx index 7f711cd..c0d0e9f 100644 --- a/src/screens/Music/stacks/Albums.tsx +++ b/src/screens/Music/stacks/Albums.tsx @@ -43,6 +43,7 @@ const SectionContainer = styled.View` border-bottom-width: 1px; height: 50px; justify-content: center; + padding: 0 10px; `; const SectionText = styled.Text` @@ -50,12 +51,14 @@ const SectionText = styled.Text` font-weight: bold; `; +const sectionStyles = { ...colors.view, ...colors.border }; + class SectionHeading extends PureComponent<{ label: string }> { render() { const { label } = this.props; return ( - + {label} ); @@ -152,7 +155,7 @@ const Albums: React.FC = () => { const nextItem = section.data[index + 1]; return ( - + { return ( - - - `${item}_${index}`} - renderSectionHeader={generateSection} - renderItem={generateItem} - /> - + + `${item}_${index}`} + renderSectionHeader={generateSection} + renderItem={generateItem} + /> ); };