Skip to content

Commit

Permalink
Merge pull request #50 from BernardDev/development
Browse files Browse the repository at this point in the history
Release 2.2
  • Loading branch information
BernardDev committed May 29, 2023
2 parents 65705b3 + 67702f4 commit a7df84e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/components/UrlExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ import useRequest from '../hooks/useRequest';
import {AuthContext} from '../context/AuthContext';

const BASE_URL = process.env.REACT_APP_API_URL;
const DUMMY_API_KEY = process.env.REACT_APP_API_SYNTH_KEY;
const INITIAL_ROUTE = '/synths';

function UrlExplorer() {
// TODO: rework sendgrid api to make sending api's possible again
const [stateAlert, setStateAlert] = useState(false);
const [copySuccess, setCopySuccess] = useState('');
const [isFetching, setIsFetching] = useState(false);
Expand Down Expand Up @@ -102,12 +104,12 @@ function UrlExplorer() {
placeholder='Paste your API key...'
name='storedKey'
onChange={handleKeyInput}
value={apiKey || ''}
value={DUMMY_API_KEY || ''}
/>
<Button
className=''
variant='primary'
onClick={() => saveKey(apiKey)}
onClick={() => saveKey(DUMMY_API_KEY)}
>
Save
</Button>
Expand Down

2 comments on commit a7df84e

@vercel
Copy link

@vercel vercel bot commented on a7df84e May 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on a7df84e May 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.