Skip to content

Commit 80514e6

Browse files
Merge pull request #219 from galio-org/dev
v0.7.1
2 parents 2e2fd91 + 58fbf8b commit 80514e6

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

src/Card.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { Image, StyleSheet } from 'react-native';
44
import PropTypes from 'prop-types';
55
// galio components
66
import Block from './Block';
7-
import Text from './Text';
8-
import Icon from './Icon';
7+
import Text from './atomic/ions/Text';
8+
import Icon from './atomic/ions/Icon';
99
import GalioTheme, { withGalio } from './theme';
1010

1111
function Card({

src/Checkbox.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import React from 'react';
33
import { View, TouchableOpacity, StyleSheet, Image } from 'react-native';
44
import PropTypes from 'prop-types';
55
// galio dependency
6-
import Icon from './Icon';
7-
import Text from './Text';
6+
import Icon from './atomic/ions/Icon';
7+
import Text from './atomic/ions/Text';
88
import GalioTheme, { withGalio } from './theme';
99

1010
function Checkbox({
11-
checkboxStyle,
11+
checkboxStyle,
1212
color,
1313
disabled,
1414
flexDirection,
@@ -62,7 +62,6 @@ function Checkbox({
6262

6363
// adding the check icon
6464
function renderChecked() {
65-
6665
if (checked) {
6766
return <Icon name={iconName} family={iconFamily} color={iconColor} size={iconSize} />;
6867
}

src/NavBar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import PropTypes from 'prop-types';
44

55
// galio components
66
import Block from './Block';
7-
import Text from './Text';
8-
import Icon from './Icon';
7+
import Text from './atomic/ions/Text';
8+
import Icon from './atomic/ions/Icon';
99
import GalioTheme, { withGalio } from './theme';
1010

1111
const { height } = Dimensions.get('screen');
@@ -47,12 +47,12 @@ function NavBar({
4747

4848
function renderLeft() {
4949
if (!hideLeft) {
50-
if (leftIconName || back && !left) {
50+
if (leftIconName || (back && !left)) {
5151
return (
5252
<View style={[styles.left, leftStyle]}>
5353
<TouchableOpacity onPress={() => onLeftPress && onLeftPress()} hitSlop={leftHitSlop}>
5454
<Icon
55-
family={leftIconFamily || "evilicons"}
55+
family={leftIconFamily || 'evilicons'}
5656
color={leftIconColor || theme.COLORS.ICON}
5757
size={leftIconSize || theme.SIZES.BASE * 1.0625}
5858
name={leftIconName || (back ? 'chevron-left' : 'navicon')}

src/Radio.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { View, TouchableOpacity, StyleSheet } from 'react-native';
33
import PropTypes from 'prop-types';
44
// G A L I O - D E P E N D E N C Y
5-
import Text from './Text';
5+
import Text from './atomic/ions/Text';
66
import GalioTheme, { withGalio } from './theme';
77

88
function Radio({
@@ -20,7 +20,7 @@ function Radio({
2020
theme,
2121
}) {
2222
const [checked, setChecked] = React.useState(initialValue);
23-
23+
2424
// A D D I N G - R E Q U I R E D - S P A C E (S) - B A S E D - O N - F L E X - D I R E C T I O N
2525
function spaceAround(direction) {
2626
switch (direction) {
@@ -37,7 +37,6 @@ function Radio({
3737

3838
// R E N D E R - L A B E L
3939
function renderLabel() {
40-
4140
const labelStyles = [
4241
styles.textStyles,
4342
disabled && styles.disabledLabel,
@@ -58,7 +57,6 @@ function Radio({
5857
setChecked(current);
5958
}
6059

61-
6260
const containerStyles = [styles.container, flexDirection && { flexDirection }, containerStyle];
6361

6462
const whichColor =
@@ -134,7 +132,7 @@ Radio.defaultProps = {
134132
initialValue: false,
135133
label: null,
136134
labelStyle: null,
137-
onChange: () => { },
135+
onChange: () => {},
138136
styles: {},
139137
theme: GalioTheme,
140138
};

src/Toast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
22
import { Dimensions, StyleSheet, Animated, ViewPropTypes } from 'react-native';
33
import PropTypes from 'prop-types';
44
// galio components
5-
import Text from './Text';
5+
import Text from './atomic/ions/Text';
66
import GalioTheme, { withGalio } from './theme';
77

88
const { height } = Dimensions.get('screen');

0 commit comments

Comments
 (0)