vpt-sebraeds 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,9 +3,6 @@ import { View, Image, StyleSheet } from 'react-native';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Icon from '../../Icon';
|
|
5
5
|
|
|
6
|
-
// Importa a imagem que você adicionou
|
|
7
|
-
import editIconImage from '../../../assets/edit-icon.png';
|
|
8
|
-
|
|
9
6
|
const EditIcon = ({
|
|
10
7
|
size = 32,
|
|
11
8
|
source, // Permite passar uma fonte de imagem personalizada
|
|
@@ -15,8 +12,8 @@ const EditIcon = ({
|
|
|
15
12
|
style,
|
|
16
13
|
}) => {
|
|
17
14
|
// Se não tiver uma fonte personalizada, usa a imagem padrão
|
|
18
|
-
if (!source
|
|
19
|
-
source =
|
|
15
|
+
if (!source) {
|
|
16
|
+
source = require('../../../../assets/edit-icon.png');
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
// Se tiver uma imagem, usa ela
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditIcon.d.ts","sourceRoot":"","sources":["../../../../components/TaskCard/components/EditIcon.jsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EditIcon.d.ts","sourceRoot":"","sources":["../../../../components/TaskCard/components/EditIcon.jsx"],"names":[],"mappings":";AAKA;;;;;;;sBAmDC;;;;;;;;;;;kBAxDiB,OAAO"}
|
|
@@ -2,13 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { View, Image, StyleSheet } from 'react-native';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Icon from '../../Icon';
|
|
5
|
-
// Importa a imagem que você adicionou
|
|
6
|
-
import editIconImage from '../../../assets/edit-icon.png';
|
|
7
5
|
const EditIcon = ({ size = 32, source, // Permite passar uma fonte de imagem personalizada
|
|
8
6
|
backgroundColor = '#4F7CFE', iconColor = '#FFFFFF', borderRadius = 4, style, }) => {
|
|
9
7
|
// Se não tiver uma fonte personalizada, usa a imagem padrão
|
|
10
|
-
if (!source
|
|
11
|
-
source =
|
|
8
|
+
if (!source) {
|
|
9
|
+
source = require('../../../../assets/edit-icon.png');
|
|
12
10
|
}
|
|
13
11
|
// Se tiver uma imagem, usa ela
|
|
14
12
|
if (source) {
|