aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-19 16:18:44 -0400
committerIvan Chen <ivan@tagg.id>2021-04-19 16:18:44 -0400
commit9458d888cc03fc61c13db69492682ac268991887 (patch)
tree953f3b29708bc1f5b918bb403e59d4e70af58f4f /src/components
parentc477ebfd00e3898814721b8316a47cf14f1740c4 (diff)
cleaned up TAGG_LIGHT_BLUE_2 color constant
Diffstat (limited to 'src/components')
-rw-r--r--src/components/common/PostCarousel.tsx3
-rw-r--r--src/components/messages/ChannelPreview.tsx3
-rw-r--r--src/components/messages/ChatHeader.tsx3
-rw-r--r--src/components/taggs/TwitterTaggPost.tsx14
4 files changed, 13 insertions, 10 deletions
diff --git a/src/components/common/PostCarousel.tsx b/src/components/common/PostCarousel.tsx
index cda9d8db..be3dcb16 100644
--- a/src/components/common/PostCarousel.tsx
+++ b/src/components/common/PostCarousel.tsx
@@ -1,6 +1,7 @@
import React, {Fragment, useRef, useState} from 'react';
import {Image} from 'react-native';
import Carousel, {Pagination} from 'react-native-snap-carousel';
+import {TAGG_LIGHT_BLUE_2} from '../../constants';
import {SCREEN_WIDTH} from '../../utils';
interface PostCarouselProps {
@@ -39,7 +40,7 @@ const PostCarousel: React.FC<PostCarouselProps> = ({
activeDotIndex={currentPage}
dotsLength={data.length}
containerStyle={{marginBottom: marginBottom}}
- dotColor={'#6ee7e7'}
+ dotColor={TAGG_LIGHT_BLUE_2}
inactiveDotColor={'#e0e0e0'}
/>
</>
diff --git a/src/components/messages/ChannelPreview.tsx b/src/components/messages/ChannelPreview.tsx
index a7a7268a..8bd3a745 100644
--- a/src/components/messages/ChannelPreview.tsx
+++ b/src/components/messages/ChannelPreview.tsx
@@ -5,6 +5,7 @@ import {TouchableOpacity} from 'react-native-gesture-handler';
import {useStore} from 'react-redux';
import {ChannelPreviewMessengerProps} from 'stream-chat-react-native';
import {ChatContext} from '../../App';
+import {TAGG_LIGHT_BLUE_2} from '../../constants';
import {
LocalAttachmentType,
LocalChannelType,
@@ -89,7 +90,7 @@ const styles = StyleSheet.create({
},
online: {
position: 'absolute',
- backgroundColor: '#6EE7E7',
+ backgroundColor: TAGG_LIGHT_BLUE_2,
width: normalize(18),
height: normalize(18),
borderRadius: normalize(18) / 2,
diff --git a/src/components/messages/ChatHeader.tsx b/src/components/messages/ChatHeader.tsx
index 67a7f1fe..7ddaa7e6 100644
--- a/src/components/messages/ChatHeader.tsx
+++ b/src/components/messages/ChatHeader.tsx
@@ -5,6 +5,7 @@ import {Text} from 'react-native-animatable';
import {TouchableOpacity} from 'react-native-gesture-handler';
import {useDispatch, useStore} from 'react-redux';
import {ChatContext} from '../../App';
+import {TAGG_LIGHT_BLUE_2} from '../../constants';
import {ScreenType} from '../../types';
import {
ChatHeaderHeight,
@@ -87,7 +88,7 @@ const styles = StyleSheet.create({
},
online: {
position: 'absolute',
- backgroundColor: '#6EE7E7',
+ backgroundColor: TAGG_LIGHT_BLUE_2,
width: normalize(16),
height: normalize(16),
borderRadius: normalize(16) / 2,
diff --git a/src/components/taggs/TwitterTaggPost.tsx b/src/components/taggs/TwitterTaggPost.tsx
index 834e32ef..b2889e3e 100644
--- a/src/components/taggs/TwitterTaggPost.tsx
+++ b/src/components/taggs/TwitterTaggPost.tsx
@@ -1,12 +1,12 @@
import React from 'react';
-import {Image, Linking, StyleSheet, View} from 'react-native';
-import {Text} from 'react-native-animatable';
+import { Image, Linking, StyleSheet, View } from 'react-native';
+import { Text } from 'react-native-animatable';
import Hyperlink from 'react-native-hyperlink';
import LinearGradient from 'react-native-linear-gradient';
-import {AVATAR_DIM, TAGGS_GRADIENT, TAGG_LIGHT_BLUE} from '../../constants';
-import {TwitterPostType} from '../../types';
-import {handleOpenSocialUrlOnBrowser, SCREEN_WIDTH} from '../../utils';
-import {DateLabel, PostCarousel} from '../common';
+import { AVATAR_DIM, TAGGS_GRADIENT, TAGG_LIGHT_BLUE, TAGG_LIGHT_BLUE_2 } from '../../constants';
+import { TwitterPostType } from '../../types';
+import { handleOpenSocialUrlOnBrowser, SCREEN_WIDTH } from '../../utils';
+import { DateLabel, PostCarousel } from '../common';
interface TwitterTaggPostProps {
ownerHandle: string;
@@ -194,7 +194,7 @@ const styles = StyleSheet.create({
},
viewOnTwitterText: {
fontSize: 12,
- color: '#6ee7e7',
+ color: TAGG_LIGHT_BLUE_2,
},
// reply post
replyPostContainer: {