mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-18 03:13:46 +00:00
kinda works, but wasteful and misinforming :(
This commit is contained in:
@@ -2,7 +2,7 @@ import {KarakterInputs} from "../domain-models/karakter";
|
||||
import axios from "axios";
|
||||
|
||||
export async function StoreNewCharacter(karakter: KarakterInputs) {
|
||||
let response = await axios.post(`${window.location.origin}/Character/`, karakter, {
|
||||
let response = await axios.post(`${window.location.origin}/api/Character/`, karakter, {
|
||||
withCredentials: true,
|
||||
})
|
||||
if (response.status < 300){
|
||||
|
||||
@@ -25,8 +25,8 @@ function CharacterList(props: {faro?: Faro}) {
|
||||
</thead>
|
||||
<tbody>
|
||||
{characters.map(c => (
|
||||
<tr>
|
||||
<CharacterListItem character={c} key={c.id}/>
|
||||
<tr key={c.id}>
|
||||
<CharacterListItem character={c}/>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
import * as React from "react";
|
||||
|
||||
function ErrorBoundary(props: {}) {
|
||||
|
||||
return <div>
|
||||
<div className="container-fluid p-5 bg-danger text-white text-center">
|
||||
<h1>Valami hiba történt :(</h1>
|
||||
</div>
|
||||
<div className="p-5 text-center">
|
||||
<p>Töltsd újra az oldalt, és ha az sem segít lépj kapcsolatba a fejlesztővel a <a href="mailto:developer@kemkas.hu">developer@kemkas.hu</a> email címen!</p>
|
||||
<p>Kérlek vedd figyelembe, hogy ez egy hobby projekt limitált erőforrásokkal.</p>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
export default ErrorBoundary;
|
||||
Reference in New Issue
Block a user