Commit e5e57d18 authored by chechunchi's avatar chechunchi

fix small

parent cecc5658
Pipeline #19471 passed with stages
in 3 minutes and 12 seconds
...@@ -2,7 +2,8 @@ import * as BABYLON from "@babylonjs/core"; ...@@ -2,7 +2,8 @@ import * as BABYLON from "@babylonjs/core";
import * as CONFIG from "../../config/ui"; import * as CONFIG from "../../config/ui";
import { useAppSelector } from "../../hook"; import { useAppSelector } from "../../hook";
import { selectMeField, selectOpField } from "../../reducers/duel/fieldSlice"; import { selectMeField, selectOpField } from "../../reducers/duel/fieldSlice";
import SingleSlot, { Depth } from "./singleSlot"; import FixedSlot from "./fixedSlot";
import { Depth } from "./singleSlot";
const Field = () => { const Field = () => {
const meField = useAppSelector(selectMeField)?.inner; const meField = useAppSelector(selectMeField)?.inner;
...@@ -10,16 +11,24 @@ const Field = () => { ...@@ -10,16 +11,24 @@ const Field = () => {
return ( return (
<> <>
<SingleSlot {meField ? (
state={meField ? [meField] : []} <FixedSlot
position={fieldPosition(0)} state={meField}
rotation={CONFIG.CardSlotRotation(false)} position={fieldPosition(0)}
/> rotation={CONFIG.CardSlotRotation(false)}
<SingleSlot />
state={opField ? [opField] : []} ) : (
position={fieldPosition(1)} <></>
rotation={CONFIG.CardSlotRotation(true)} )}
/> {opField ? (
<FixedSlot
state={opField}
position={fieldPosition(1)}
rotation={CONFIG.CardSlotRotation(true)}
/>
) : (
<></>
)}
</> </>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment