|
@@ -1,15 +1,20 @@
|
|
|
import React from 'react';
|
|
|
import Member from './Member';
|
|
|
import logo from '../../logo.svg';
|
|
|
+import Mech from '../../Mech';
|
|
|
|
|
|
function Squad() {
|
|
|
+
|
|
|
+ const it1: Mech = {id: 1, name: 'HelloType', kind: 'K1', health: 3};
|
|
|
+ const it2: Mech = {id: 2, name: 'Giant Mech', kind: 'K1', health: 3};
|
|
|
+ const it3: Mech = {id: 3, name: 'Techno-prop', kind: 'K1', health: 4};
|
|
|
return (
|
|
|
<article className='custom-squad'>
|
|
|
<h2>Custom squad</h2>
|
|
|
<div className='mech-members'>
|
|
|
- <Member mechName='Mech 1'/>
|
|
|
- <Member mechName='Giant Mech'/>
|
|
|
- <Member mechName='Techno-prop'/>
|
|
|
+ <Member mech={it1}/>
|
|
|
+ <Member mech={it2}/>
|
|
|
+ <Member mech={it3}/>
|
|
|
</div>
|
|
|
<div className='squad-description'>
|
|
|
<label htmlFor='squad-description-field-id'>Squad description</label>
|