Refactor frontend-mobile
Run Tests on Branches / Frontend Tests (push) Has been cancelled
Run Tests on Branches / Backend Tests (push) Has been cancelled

This commit is contained in:
Antoni Nuñez Romeu
2026-07-07 18:08:44 +02:00
parent 69d66729aa
commit 9949b85001
14 changed files with 771 additions and 100 deletions
@@ -52,14 +52,14 @@ export function MedicineCard({ medicine }: MedicineCardProps) {
const styles = StyleSheet.create({
card: {
backgroundColor: colors.card,
borderRadius: borderRadius.md,
borderRadius: borderRadius.lg,
padding: spacing.md,
marginHorizontal: spacing.md,
marginHorizontal: spacing.lg,
marginVertical: spacing.xs,
shadowColor: '#000',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.1,
shadowRadius: 4,
shadowOpacity: 0.06,
shadowRadius: 8,
elevation: 2,
},
header: {
@@ -92,7 +92,7 @@ const styles = StyleSheet.create({
price: {
fontSize: 14,
fontWeight: '600',
color: colors.text,
color: colors.primary,
marginLeft: spacing.xs,
},
labContainer: {
@@ -60,11 +60,16 @@ const styles = StyleSheet.create({
flexDirection: 'row',
alignItems: 'center',
backgroundColor: colors.card,
borderRadius: borderRadius.md,
borderRadius: borderRadius.lg,
paddingHorizontal: spacing.md,
paddingVertical: spacing.sm,
marginHorizontal: spacing.md,
paddingVertical: spacing.sm + 2,
marginHorizontal: spacing.lg,
marginVertical: spacing.sm,
shadowColor: '#000',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.06,
shadowRadius: 8,
elevation: 2,
},
icon: {
marginRight: spacing.sm,
@@ -33,13 +33,13 @@ const styles = StyleSheet.create({
borderRadius: borderRadius.sm,
},
success: {
backgroundColor: '#D4EDDA',
backgroundColor: '#eaf7ec',
},
warning: {
backgroundColor: '#FFF3CD',
backgroundColor: '#fff3cd',
},
danger: {
backgroundColor: '#F8D7DA',
backgroundColor: '#feecec',
},
text: {
fontSize: 12,