Skip to content

Commit

Permalink
feat: create link from api key to key page
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Sep 27, 2021
1 parent 49dc079 commit 25c256f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ApiKey.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { Link } from 'react-router-dom';
import { useGeocodeContext } from '../components/GeocodeContext';

export default function ApiKey() {
Expand All @@ -8,7 +9,9 @@ export default function ApiKey() {
<section className="absolute top-0 right-0 h-4">
<div className="flex px-3 py-2 text-sm text-indigo-900 bg-gray-100 border-b border-l rounded-bl-lg">
<h3>ApiKey:</h3>
<span className="font-bold">{geocodeContext.apiKey}</span>
<Link to="/?skip-forward=1" className="font-bold">
{geocodeContext.apiKey}
</Link>
</div>
</section>
);
Expand Down

0 comments on commit 25c256f

Please sign in to comment.