Compare commits

..

No commits in common. "3ede25752c999b044e20d6e6b97bc1ff004f7095" and "5067f76bbf317c55b003c2c2f6af0b992a03edf7" have entirely different histories.

2 changed files with 2 additions and 22 deletions

View file

@ -9,9 +9,9 @@ interface ButtonSettingProps {
const ButtonSetting: React.FC<ButtonSettingProps> = ({ label, onClick, className }) => { const ButtonSetting: React.FC<ButtonSettingProps> = ({ label, onClick, className }) => {
return ( return (
<div className="settings-option"> <div className="settings-option">
<button <button
onClick={onClick} // Call the onClick function when the button is clicked onClick={onClick} // Call the onClick function when the button is clicked
className={className="export-button"} // Apply any additional classes className={className} // Apply any additional classes
> >
{label} {/* Display the label on the button */} {label} {/* Display the label on the button */}
</button> </button>

View file

@ -618,11 +618,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
type="text" // Input type type="text" // Input type
placeholder={localStorage.getItem('mistral') || "Enter the API key"} placeholder={localStorage.getItem('mistral') || "Enter the API key"}
/> />
<div className="settings-option">
<a href="https://console.mistral.ai/api-keys/" target="_blank" rel="noopener noreferrer">
<button className="export-button">Get your API key here</button>
</a>
</div>
<TextSettings <TextSettings
label="OpenAI" // Label for the input label="OpenAI" // Label for the input
value={openai} // State variable for the input value={openai} // State variable for the input
@ -630,11 +625,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
type="text" // Input type type="text" // Input type
placeholder={localStorage.getItem('openai') || "Enter the API key"} placeholder={localStorage.getItem('openai') || "Enter the API key"}
/> />
<div className="settings-option">
<a href="https://platform.openai.com/api-keys" target="_blank" rel="noopener noreferrer">
<button className="export-button">Get your API key here</button>
</a>
</div>
<TextSettings <TextSettings
label="Anthropic" // Label for the input label="Anthropic" // Label for the input
value={anthropic} // State variable for the input value={anthropic} // State variable for the input
@ -642,11 +632,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
type="text" // Input type type="text" // Input type
placeholder={localStorage.getItem('anthropic') || "Enter the API key"} placeholder={localStorage.getItem('anthropic') || "Enter the API key"}
/> />
<div className="settings-option">
<a href="https://console.anthropic.com/settings/keys" target="_blank" rel="noopener noreferrer">
<button className="export-button">Get your API key here</button>
</a>
</div>
<TextSettings <TextSettings
label="Google" // Label for the input label="Google" // Label for the input
value={google} // State variable for the input value={google} // State variable for the input
@ -654,11 +639,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
type="text" // Input type type="text" // Input type
placeholder={localStorage.getItem('google') || "Enter the API key"} placeholder={localStorage.getItem('google') || "Enter the API key"}
/> />
<div className="settings-option">
<a href="https://aistudio.google.com/app/apikey" target="_blank" rel="noopener noreferrer">
<button className="export-button">Get your API key here</button>
</a>
</div>
</div> </div>
); );