Skip to content

Commit

Permalink
fix: crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylin committed Mar 26, 2023
1 parent d1e51d6 commit f72f8ff
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions app.json
Expand Up @@ -25,6 +25,7 @@
}
},
"android": {
"versionCode": 4,
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FF3336"
Expand Down
4 changes: 2 additions & 2 deletions components/article-list/ArticleRow.tsx
Expand Up @@ -39,8 +39,8 @@ export const ArticleRow: FC<ArticleRowProps> = ({
swipeable.close();
}
}}
renderLeftActions={SwipeDeleteAction}
renderRightActions={SwipeEditAction}>
renderLeftActions={() => <SwipeDeleteAction />}
renderRightActions={() => <SwipeEditAction />}>
<Row backgroundColor="white" paddingX={4} paddingY={2}>
<Flex direction="row" width="80%" alignItems="center">
<Text>{label}</Text>
Expand Down
5 changes: 4 additions & 1 deletion components/scanner/OpenScannerFab.tsx
Expand Up @@ -6,7 +6,10 @@ import React from 'react';
export const OpenScannerFab = () => {
return (
<Link href="scanner" asChild>
<Fab icon={<Icon as={<MaterialIcons name="add" />} />}>
<Fab
marginRight={4}
marginBottom={4}
icon={<Icon as={<MaterialIcons name="add" />} />}>
<Icon name="barcode-scan" />
</Fab>
</Link>
Expand Down
4 changes: 2 additions & 2 deletions i18n/locales/en.json
Expand Up @@ -6,9 +6,9 @@
"app.index.article_list.swipe.delete": "Delete",
"app.index.article_list.swipe.edit": "Edit",
"app.index.modal.add_article.create.save": "Add",
"app.index.modal.add_article.create.title": "Add new entry for: {label}",
"app.index.modal.add_article.create.title": "Add new entry for: {{code}}",
"app.index.modal.add_article.edit.save": "Edit",
"app.index.modal.add_article.edit.title": "Edit entry: {code}",
"app.index.modal.add_article.edit.title": "Edit entry: {{label}}",
"app.index.modal.add_article.input.label.label": "Label",
"app.index.modal.add_article.input.price.label": "Buying price",
"app.layout.index.header_title": "Article list",
Expand Down
4 changes: 2 additions & 2 deletions i18n/locales/fr.json
@@ -1,9 +1,9 @@
{
"app.layout.index.header_title": "Liste d'articles",
"app.index.modal.add_article.create.save": "Ajouter",
"app.index.modal.add_article.create.title": "Ajouter une entrée pour: {label}",
"app.index.modal.add_article.create.title": "Ajouter une entrée pour: {{code}}",
"app.index.modal.add_article.edit.save": "Modifier",
"app.index.modal.add_article.edit.title": "Modifier l'entrée: {code}",
"app.index.modal.add_article.edit.title": "Modifier l'entrée: {{label}}",
"app.index.modal.add_article.input.label.label": "Label",
"app.index.modal.add_article.input.price.label": "Prix d'achat",
"app.index.article_list.empty": "Aucune data",
Expand Down
4 changes: 2 additions & 2 deletions i18n/locales/tr.json
@@ -1,9 +1,9 @@
{
"app.layout.index.header_title": "Mal listesi",
"app.index.modal.add_article.create.save": "Ekle",
"app.index.modal.add_article.create.title": "{label} için yeni giriş ekle",
"app.index.modal.add_article.create.title": "{{code}} için yeni giriş ekle",
"app.index.modal.add_article.edit.save": "Düzenle",
"app.index.modal.add_article.edit.title": "{code} girişi düzenle",
"app.index.modal.add_article.edit.title": "{{label}} girişi düzenle",
"app.index.modal.add_article.input.label.label": "Ad",
"app.index.modal.add_article.input.price.label": "Alım fiyati",
"app.index.article_list.empty": "Veri yok",
Expand Down

0 comments on commit f72f8ff

Please sign in to comment.