fix(ui): Various fixes

This commit is contained in:
Richard Palethorpe
2025-04-02 07:43:48 +01:00
parent 74fdfd7a55
commit 9f77bb99f1
3 changed files with 2 additions and 9 deletions

View File

@@ -114,12 +114,6 @@ function App() {
</div>
</main>
{/* Footer */}
<footer className="main-footer">
<div className="container">
<p>&copy; {new Date().getFullYear()} LocalAgent - Cybernetic Intelligence</p>
</div>
</footer>
</div>
)
}

View File

@@ -26,7 +26,7 @@ function ImportAgent() {
const formData = new FormData();
formData.append('file', file);
await agentApi.importAgentConfig(formData);
await agentApi.importAgent(formData);
showToast('Agent imported successfully', 'success');
navigate('/agents');
} catch (err) {
@@ -58,7 +58,7 @@ function ImportAgent() {
<i className="fas fa-cloud-upload-alt"></i>
<h2>Drop your agent file here</h2>
<p>or</p>
<label htmlFor="fileInput" className="file-button">
<label htmlFor="fileInput" className="action-btn">
<i className="fas fa-folder-open"></i> Select File
</label>
<input

View File

@@ -145,7 +145,6 @@ export const agentApi = {
importAgent: async (formData) => {
const response = await fetch(buildUrl(API_CONFIG.endpoints.importAgent), {
method: 'POST',
headers: API_CONFIG.headers,
body: formData,
});
return handleResponse(response);