MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / createStyles

Function createStyles

app/components/Base/DetailsModal.js:10–61  ·  view source on GitHub ↗
(colors)

Source from the content-addressed store, hash-verified

8import { TransactionDetailsModalSelectorsIDs } from '../../../e2e/selectors/Modals/TransactionDetailsModal.selectors';
9
10const createStyles = (colors) =>
11 StyleSheet.create({
12 modalContainer: {
13 width: '100%',
14 backgroundColor: colors.background.default,
15 borderRadius: 10,
16 },
17 modalView: {
18 flexDirection: 'column',
19 justifyContent: 'center',
20 alignItems: 'center',
21 },
22 header: {
23 borderBottomWidth: StyleSheet.hairlineWidth,
24 borderColor: colors.border.muted,
25 flexDirection: 'row',
26 paddingHorizontal: 16,
27 },
28 title: {
29 flex: 1,
30 textAlign: 'center',
31 fontSize: 18,
32 marginVertical: 12,
33 marginHorizontal: 24,
34 color: colors.text.default,
35 ...fontStyles.bold,
36 },
37 closeIcon: { paddingTop: 4, position: 'absolute', right: 16 },
38 body: {
39 paddingHorizontal: 15,
40 },
41 section: {
42 paddingVertical: 16,
43 flexDirection: 'row',
44 },
45 sectionBorderBottom: {
46 borderBottomColor: colors.border.muted,
47 borderBottomWidth: 1,
48 },
49 column: {
50 flex: 1,
51 },
52 columnEnd: {
53 alignItems: 'flex-end',
54 },
55 sectionTitle: {
56 ...fontStyles.normal,
57 fontSize: 10,
58 color: colors.text.alternative,
59 marginBottom: 8,
60 },
61 });
62const DetailsModal = ({ children }) => {
63 const { colors } = useTheme();
64 const styles = createStyles(colors);

Callers 4

DetailsModalFunction · 0.70
DetailsModalHeaderFunction · 0.70
DetailsModalTitleFunction · 0.70
DetailsModal.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected