Skip to content

Commit

Permalink
change Croma to Huehive and some code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalkishor1991 committed Jul 25, 2023
1 parent 13bea7c commit 40db71c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 45 deletions.
42 changes: 3 additions & 39 deletions screens/AboutUsScreen.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
import {
Linking,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View
} from 'react-native';
import { Linking, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import React from 'react';
import { material } from 'react-native-typography';
import Entypo from 'react-native-vector-icons/Entypo';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import { logEvent } from '../libs/Helpers';
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
import { useTranslation } from 'react-i18next';

const GITHUB_URL = 'https://github.com/croma-app/croma-react';
const INSTAGRAM_URL = 'https://www.instagram.com/huehiveco/';
const CROMA_APP_URL = 'https://huehive.co';
const CROMA_IOS_URL = 'https://apps.apple.com/app/croma-palette-manager/id1596763657';
const CROMA_PLAYSTORE_URL = 'https://play.google.com/store/apps/details?id=app.croma';
const DISCORD_URL = 'https://discord.com/invite/ZSBVsBqDtg';

const AboutUsScreen = () => {
Expand All @@ -32,7 +20,7 @@ const AboutUsScreen = () => {
<View>
<Text style={styles.line}>
{t(
'Croma is a simple color palette manager and color picker made for designers, aiming to make it quick and fun to create and share color palettes on the go.'
'Huehive is a simple color palette manager and color picker made for designers, aiming to make it quick and fun to create and share color palettes on the go.'
)}
</Text>
</View>
Expand All @@ -51,13 +39,7 @@ const AboutUsScreen = () => {
<Text style={[styles.line, styles.link]}>{DISCORD_URL}</Text>
</View>
</TouchableOpacity>
{/* <TouchableOpacity onPress={() => Linking.openURL(`${GITHUB_URL}`)}>
<View style={styles.linkView}>
<Entypo name="github-with-circle" style={styles.icon} />
<Text style={[styles.line, styles.subtitle]}>{t('Find us on Github !')}</Text>
<Text style={[styles.line, styles.link]}>{GITHUB_URL}</Text>
</View>
</TouchableOpacity> */}

<TouchableOpacity onPress={() => Linking.openURL(`${CROMA_APP_URL}`)}>
<View style={styles.linkView}>
<MaterialCommunityIcons name="web" style={styles.icon} />
Expand All @@ -66,24 +48,6 @@ const AboutUsScreen = () => {
<Text style={[styles.line, styles.link]}>{CROMA_APP_URL}</Text>
</View>
</TouchableOpacity>
{/* {Platform.OS == 'android' && (
<TouchableOpacity onPress={() => Linking.openURL(`${CROMA_IOS_URL}`)}>
<View style={styles.linkView}>
<FontAwesome5 name="app-store-ios" style={styles.icon} />
<Text style={[styles.line, styles.subtitle]}>{t('Croma on App store')}</Text>
<Text style={[styles.line, styles.link]}>{CROMA_IOS_URL}</Text>
</View>
</TouchableOpacity>
)}
{Platform.OS == 'ios' && (
<TouchableOpacity onPress={() => Linking.openURL(`${CROMA_PLAYSTORE_URL}`)}>
<View style={styles.linkView}>
<FontAwesome5 name="google-play" style={styles.icon} />
<Text style={[styles.line, styles.subtitle]}>{t('Croma on Playstore')}</Text>
<Text style={[styles.line, styles.link]}>{CROMA_PLAYSTORE_URL}</Text>
</View>
</TouchableOpacity>
)} */}
</View>
</ScrollView>
);
Expand Down
2 changes: 1 addition & 1 deletion screens/ColorPickerScreen.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useContext } from 'react';
import { ScrollView, View, StyleSheet, Text } from 'react-native';
import { ScrollView, View, StyleSheet } from 'react-native';
import CromaButton from '../components/CromaButton';
import { CromaColorPicker as ColorPicker } from 'croma-color-picker';
import { logEvent } from '../libs/Helpers';
Expand Down
2 changes: 1 addition & 1 deletion screens/CommonPalettesScreen.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useLayoutEffect, useContext } from 'react';
import { ScrollView, StyleSheet, Text } from 'react-native';
import { ScrollView, StyleSheet } from 'react-native';

import { logEvent } from '../libs/Helpers';
import { PalettePreviewCard } from '../components/PalettePreviewCard';
Expand Down
6 changes: 2 additions & 4 deletions screens/ProVersionScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export default function ProScreen() {
<CromaButton
style={{ backgroundColor: '#ff5c59' }}
textStyle={{ color: '#fff' }}
onPress={purchasePro}
>
onPress={purchasePro}>
{isPro ? t('You are a pro user! Enjoy the app') : t('Unlock pro')}
</CromaButton>
<Text style={styles.line}>
Expand All @@ -49,8 +48,7 @@ export default function ProScreen() {
<CromaButton
onPress={async () => {
await initPurchase(setPurchase);
}}
>
}}>
{t('Restore Pro')}
</CromaButton>
</View>
Expand Down

0 comments on commit 40db71c

Please sign in to comment.