Skip to content

Commit

Permalink
Merge pull request #49 from BernardDev/feature/synth-explorer-api
Browse files Browse the repository at this point in the history
feat: make explorer usable without sending key
  • Loading branch information
BernardDev committed May 29, 2023
2 parents af3cdd4 + 298670d commit 67702f4
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

0 comments on commit 67702f4

Please sign in to comment.