-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Iconem/historical-satellite
- Loading branch information
Showing
6 changed files
with
73 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React, { useState } from 'react'; | ||
import TextField from '@mui/material/TextField'; | ||
import Checkbox from '@mui/material/Checkbox'; | ||
|
||
function CustomPlanetApiModal(props: any) { | ||
const customPlanetApiKey = props.customPlanetApiKey; | ||
const UseCustomPlanetApiKey = props.UseCustomPlanetApiKey; | ||
const setCustomPlanetApiKey = props.setCustomPlanetApiKey; | ||
const setUseCustomPlanetApiKey = props.setUseCustomPlanetApiKey; | ||
|
||
const handleCheckboxChange = () => { | ||
setUseCustomPlanetApiKey(!UseCustomPlanetApiKey); | ||
}; | ||
|
||
const handleInputChange = (event) => { | ||
setCustomPlanetApiKey(event.target.value); | ||
}; | ||
|
||
|
||
return ( | ||
<div className='customApiModal'> | ||
<Checkbox checked={UseCustomPlanetApiKey} onChange={handleCheckboxChange} /> | ||
<TextField value={customPlanetApiKey} onChange={handleInputChange} label="Planet Monthly Key" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CustomPlanetApiModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters