Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Create a public link" displays "GT Guide" onscreen after creating the link. (#490) #501

Merged
merged 3 commits into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/screens/PublicLinkScreen/PublicLinkScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { PublicLinkScreenProps } from './PublicLinkScreen.d';
import dynamicStyleSheet from './PublicLinkScreen.styles';
import { LoadingIndicatorDots, NavHeader } from '../../components';
import { Ionicons, MaterialIcons } from '@expo/vector-icons';
import credential from '../../mock/credential';
import { createPublicLinkFor, getPublicViewLink, linkedinUrlFrom, unshareCredential } from '../../lib/publicLink';
import { useDynamicStyles, useShareCredentials, useVerifyCredential } from '../../hooks';
import { clearGlobalModal, displayGlobalModal } from '../../lib/globalModal';
Expand All @@ -26,6 +25,8 @@ export default function PublicLinkScreen ({ navigation, route }: PublicLinkScree

const share = useShareCredentials();
const { rawCredentialRecord, screenMode = PublicLinkScreenMode.Default } = route.params;
const { credential } = rawCredentialRecord;
const { name } = credential;
const [publicLink, setPublicLink] = useState<string | null>(null);
const [justCreated, setJustCreated] = useState(false);
const isVerified = useVerifyCredential(rawCredentialRecord)?.result.verified;
Expand Down Expand Up @@ -257,7 +258,7 @@ export default function PublicLinkScreen ({ navigation, route }: PublicLinkScree
<>
{screenMode === PublicLinkScreenMode.Default && (
<Text style={styles.title}>
{credential.credentialSubject?.hasCredential?.name || 'Credential'}
{name || 'Credential'}
</Text>
)}
<Text style={styles.instructions}>{instructionsText}</Text>
Expand Down
Loading