eletrotupi / tcc/ commit / b4d6814

frontend: adjust collapsible component

I don't even know if I'm going to use this
Pedro Lucas Porcellis porcellis@eletrotupi.com · 5 months ago b4d6814cd1d361518f79b5f8d9b78696e1a20dc2 Browse files
Parents 03018f2
Changed files
1
Additions
+1
Deletions
-1
frontend/components/ui/collapsible.tsx
1 1
import { PropsWithChildren, useState } from 'react';
2 2
import { StyleSheet, TouchableOpacity } from 'react-native';
3 3

4 4
import { ThemedText } from '@/components/misc/themed-text';
5 5
import { ThemedView } from '@/components/misc/themed-view';
19 19
        activeOpacity={0.8}>
20 20
        <IconSymbol
21 21
          name="chevron.right"
22 22
          size={18}
23 23
          weight="medium"
24 -
          color={theme === 'light' ? Colors.light.icon : Colors.dark.icon}
24 +
          color={Colors.light.icon}
25 25
          style={{ transform: [{ rotate: isOpen ? '90deg' : '0deg' }] }}
26 26
        />
27 27

28 28
        <ThemedText type="defaultSemiBold">{title}</ThemedText>
29 29
      </TouchableOpacity>
41 41
  content: {
42 42
    marginTop: 6,
43 43
    marginLeft: 24,
44 44
  },
45 45
});