Skip to content

Commit

Permalink
Merge branch 'refactor-components'
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCDC committed Aug 13, 2017
2 parents 410af96 + 499ba76 commit dc2c365
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions CardCard.js
Expand Up @@ -76,28 +76,14 @@ export default class CardCard extends Component {
}}
>

<View
style={{
width: 75,
flexDirection: "row",
backgroundColor: "#DFDFDF",
justifyContent: "flex-start",
height: 15,
borderBottomLeftRadius: 10,
borderBottomRightRadius: 10
}}
>
<View style={styles.cardTopRow}>
{card.colorIdentity &&
card.colorIdentity.map((item, index) => (
<View
style={{
width: 15,
height: 15,
backgroundColor: COLORCOLORS[item],
borderRadius: 10,
borderColor: "#000000",
borderWidth: 1
}}
style={[
styles.colorDot,
{ backgroundColor: COLORCOLORS[item] }
]}
key={index}
/>
))}
Expand All @@ -120,10 +106,8 @@ export default class CardCard extends Component {
{card.supertypes && card.supertypes.join(" ")}
{" "}
{card.types.join(" ")}
{" "}
-
{" "}
{card.subtypes && card.subtypes.join(" ")}

{card.subtypes && " - " + card.subtypes.join(" ")}
</Text>
<Text
style={[
Expand Down Expand Up @@ -160,6 +144,22 @@ const styles = StyleSheet.create({
flexDirection: "row",
justifyContent: "space-between"
},
cardTopRow: {
width: 75,
flexDirection: "row",
backgroundColor: "#DFDFDF",
justifyContent: "flex-start",
height: 15,
borderBottomLeftRadius: 10,
borderBottomRightRadius: 10
},
colorDot: {
width: 15,
height: 15,
borderRadius: 10,
borderColor: "#000000",
borderWidth: 1
},
cardText: {
fontSize: 17,
color: "#000000",
Expand Down

0 comments on commit dc2c365

Please sign in to comment.