mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
@@ -17,7 +17,7 @@ function App(props: {faro?: Faro}) {
|
||||
},
|
||||
{
|
||||
path: "/karaktereim",
|
||||
element: <CharacterList faro={props.faro} />,
|
||||
element: <CharacterList />,
|
||||
loader: () => fetch(`api/Character`),
|
||||
ErrorBoundary: ErrorBoundary,
|
||||
},
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import * as React from "react";
|
||||
import {useLoaderData} from "react-router-dom";
|
||||
import CharacterListItem, {CharacterListItemDto} from "../components/CharacterListItem";
|
||||
import {Faro} from "@grafana/faro-web-sdk";
|
||||
|
||||
function CharacterList(props: {faro?: Faro}) {
|
||||
const {faro} = props
|
||||
function CharacterList(props: {}) {
|
||||
const characters = useLoaderData() as CharacterListItemDto[];
|
||||
|
||||
return <div className="container">
|
||||
@@ -34,4 +32,4 @@ function CharacterList(props: {faro?: Faro}) {
|
||||
</div>
|
||||
}
|
||||
|
||||
export default CharacterList;
|
||||
export default CharacterList;
|
||||
|
||||
Reference in New Issue
Block a user