set basic layout, error boundary, add QR code for 2FA
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import * as React from "react";
|
||||
import {Osztaly, OsztalyLabel} from "../domain-models/osztaly";
|
||||
import {Faj, FajLabel} from "../domain-models/faj";
|
||||
|
||||
export interface CharacterListItemDto {
|
||||
id: string,
|
||||
name: string,
|
||||
szint: number,
|
||||
faj: Faj,
|
||||
osztaly: Osztaly,
|
||||
}
|
||||
|
||||
function CharacterListItem(props: {
|
||||
character: CharacterListItemDto,
|
||||
}) {
|
||||
const {character:c} = props
|
||||
return <>
|
||||
<td><a href={`/${c.id}`}>{c.name}</a></td>
|
||||
<td>{c.szint}. szintű</td>
|
||||
<td>{FajLabel(c.faj)}</td>
|
||||
<td>{OsztalyLabel(c.osztaly)}</td>
|
||||
</>
|
||||
}
|
||||
|
||||
export default CharacterListItem;
|
||||
Reference in New Issue
Block a user