Skip to content

Commit

Permalink
Merge pull request #104 from datacamp/fix/restore-workspace-preview
Browse files Browse the repository at this point in the history
chore: restore preview page link
  • Loading branch information
Mim1991 authored May 4, 2022
2 parents fb3cf79 + 79914b6 commit 6e53b5d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default function TopicPage({ topicData }: Props) {
<h2>Examples</h2>
<a
className="absolute p-2 text-sm rounded-md top-0 right-0 hover:bg-green-400 md:p-3 md:text-base md:top-16 md:right-2.5"
href={`https://app.datacamp.com/workspace/new?_tag=rdocs&rdocsPath=${rdocsPath}&utm_source=r-docs&utm_medium=docs&utm_term=${topic}&utm_content=run_example_in_workspace`}
href={`https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=${rdocsPath}&utm_source=r-docs&utm_medium=docs&utm_term=${topic}&utm_content=run_example_in_workspace`}
onClick={() => registerClicks('Button')}
style={{
background: 'rgba(3, 239, 98)',
Expand All @@ -166,7 +166,7 @@ export default function TopicPage({ topicData }: Props) {
<p>
Run the code above in your browser using{' '}
<a
href={`https://app.datacamp.com/workspace/new?_tag=rdocs&rdocsPath=${rdocsPath}&utm_source=r-docs&utm_medium=docs&utm_term=${topic}&utm_content=run_example_in_workspace`}
href={`https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=${rdocsPath}&utm_source=r-docs&utm_medium=docs&utm_term=${topic}&utm_content=run_example_in_workspace`}
onClick={() => registerClicks('Link')}
target="_blank"
>
Expand Down

0 comments on commit 6e53b5d

Please sign in to comment.