Have the prototypes/ page point to Timeline Cred

As of this commit, the main SourceCred prototypes page now links to
timeline cred, meaning that timeline cred is now live. I've added a
link from the legacy explorer to the timeline explorer (which already
has a link out to the legacy explorer).

Test plan: Careful inspection of the frontend by the committer.
Also, yarn test.
This commit is contained in:
Dandelion Mané 2019-06-06 18:54:38 +03:00
parent 93ceb9ca05
commit c0b207b989
2 changed files with 7 additions and 1 deletions

View File

@ -142,6 +142,7 @@ export function createApp(
const spacer = () => (
<span style={{display: "inline-block", width: 12}} />
);
const {owner, name} = this.props.repoId;
return (
<div style={{maxWidth: 900, margin: "0 auto", padding: "0 10px"}}>
<p style={{textAlign: "right"}}>
@ -149,6 +150,11 @@ export function createApp(
{spacer()}
<Link href={feedbackUrl}>feedback</Link>
</p>
<h2>SourceCred Legacy Mode</h2>
<p>
Back to <a href={`/timeline/${owner}/${name}/`}>timeline mode</a>
</p>
<ProjectDetail repoId={this.props.repoId} />
<button
disabled={

View File

@ -26,7 +26,7 @@ export default function makePrototypesPage(
<ul>
{registry.map((x) => (
<li key={stringify(x)}>
<Link to={`/prototype/${x.repoId.owner}/${x.repoId.name}/`}>
<Link to={`/timeline/${x.repoId.owner}/${x.repoId.name}/`}>
{`${x.repoId.owner}/${x.repoId.name}`}
</Link>
</li>