aboutsummaryrefslogtreecommitdiff
path: root/src/screens/profile/CaptionScreen.tsx
diff options
context:
space:
mode:
authorBrian Kim <brian@tagg.id>2021-05-19 17:26:40 -0700
committerBrian Kim <brian@tagg.id>2021-05-19 17:26:40 -0700
commit6e09b4245f3a96560ca0eb74d46e8fd40a164f44 (patch)
tree586c72d05e2a8d73012aa5c1497df371e5f8a43f /src/screens/profile/CaptionScreen.tsx
parent73cc07e1adce4ecea0f15bd651f8db2e510c9644 (diff)
Fix redirect
Diffstat (limited to 'src/screens/profile/CaptionScreen.tsx')
-rw-r--r--src/screens/profile/CaptionScreen.tsx11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx
index 37003207..f72b1165 100644
--- a/src/screens/profile/CaptionScreen.tsx
+++ b/src/screens/profile/CaptionScreen.tsx
@@ -36,6 +36,7 @@ import {mentionPartTypes} from '../../utils/comments';
import TaggDraggable from '../../components/taggs/TaggDraggable';
import Draggable from '../../components/common/Draggable';
+import {UserType} from 'src/types';
/**
* Upload Screen to allow users to upload posts to Tagg
@@ -75,6 +76,12 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => {
const [curStart, setCurStart] = useState([0, 0]);
const [dim, setDim] = useState([0, 0]);
+ const testUser: UserType = {
+ // userId: '1216bbb4-f778-4ef3-b7f8-a55bde1ab1a1',
+ userId: 'ID-1234-567',
+ username: 'dragonofthewest',
+ };
+
const navigateToProfile = () => {
//Since the logged In User is navigating to own profile, useXId is not required
navigation.navigate('Profile', {
@@ -175,8 +182,8 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => {
minY={0}
maxX={50}
maxY={50}
- taggedUser={user}
- redirect={true}
+ taggedUser={testUser}
+ redirect={false}
deleteFromList={() => console.log('Hello world')}
setStart={setCurStart}
/>