Remove CharacterComponent and CharacterDetail components
- Deleted `CharacterComponent` and `CharacterDetail` files from the project. - Refactored related logic to improve code maintainability and reduce redundancy.
This commit is contained in:
@@ -21,6 +21,7 @@ export interface SpellProps {
|
||||
components: string | null;
|
||||
limitations: string | null;
|
||||
notes: string | null;
|
||||
seriesSpellId?: string | null;
|
||||
}
|
||||
|
||||
// Pour POST /spell/add et PUT /spell/update
|
||||
@@ -34,6 +35,7 @@ export interface SpellPropsPost {
|
||||
components?: string | null;
|
||||
limitations?: string | null;
|
||||
notes?: string | null;
|
||||
seriesSpellId?: string | null;
|
||||
}
|
||||
|
||||
// Item dans la liste (GET /spell/list)
|
||||
@@ -42,6 +44,7 @@ export interface SpellListItem {
|
||||
name: string;
|
||||
description: string;
|
||||
tags: SpellTagProps[]; // Tags résolus (pas les IDs)
|
||||
seriesSpellId?: string | null;
|
||||
}
|
||||
|
||||
// Réponse de GET /spell/list
|
||||
@@ -62,6 +65,7 @@ export interface SpellEditState {
|
||||
components: string | null;
|
||||
limitations: string | null;
|
||||
notes: string | null;
|
||||
seriesSpellId?: string | null;
|
||||
}
|
||||
|
||||
export const initialSpellState: SpellEditState = {
|
||||
@@ -74,6 +78,7 @@ export const initialSpellState: SpellEditState = {
|
||||
components: null,
|
||||
limitations: null,
|
||||
notes: null,
|
||||
seriesSpellId: null,
|
||||
};
|
||||
|
||||
export const spellPowerLevels: SelectBoxProps[] = [
|
||||
|
||||
Reference in New Issue
Block a user