Skip to content

Commit

Permalink
fix(pirateship): change shop top categories button
Browse files Browse the repository at this point in the history
  • Loading branch information
sdenaci authored and bweissbart committed Jul 12, 2018
1 parent ea7666b commit e7dc743
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/pirateship/src/lib/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ export const en: ProjectTranslationKeys = {
title: 'Shop',
shopByCategoryBtn: commonButtons.shopByCategory,
shopTopBtn: 'Shop Top Categories',
shopAllBtn: 'Shop All Categories',
viewAllBtn: 'View All'
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/pirateship/src/lib/translations/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ interface Screens<KeyType> {
};
shop: ScreenTitle<KeyType> & {
shopByCategoryBtn: KeyType;
shopAllBtn: KeyType;
shopTopBtn: KeyType;
viewAllBtn: KeyType;
};
Expand Down
11 changes: 7 additions & 4 deletions packages/pirateship/src/screens/Shop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ const ShopStyle = StyleSheet.create({
backgroundColor: palette.background
},
shopButtonsContainer: {
marginBottom: 20,
marginBottom: 15,
marginHorizontal: 15
},
shopCategoryButtonsContainer: {
flexDirection: 'row',
justifyContent: 'space-between',
marginBottom: 10
marginBottom: 0
},
searchBarContainer: {
marginBottom: 10,
Expand All @@ -70,7 +70,10 @@ const ShopStyle = StyleSheet.create({
},
sectionTitle: {
marginHorizontal: 15,
marginBottom: 15
marginTop: 0,
paddingTop: 15,
paddingBottom: 15,
justifyContent: 'center'
},
shopLandingCategories: {
borderTopWidth: 1,
Expand Down Expand Up @@ -225,7 +228,7 @@ class Shop extends Component<ShopProps> {

<View style={ShopStyle.topCategoriesContainer}>
<Text style={[GlobalStyle.h2, ShopStyle.sectionTitle]}>
{translate.string(translationKeys.screens.shop.shopTopBtn)}
{translate.string(translationKeys.screens.shop.shopAllBtn)}
</Text>
<PSButton
link
Expand Down

0 comments on commit e7dc743

Please sign in to comment.