Permalink
Browse files

Add UnitOrganization component to UnitInfo panel

  • Loading branch information...
markerikson committed Jan 1, 2018
1 parent 0ec6f08 commit d18161b511a0312d22e3a634d4e66ec76c60d400
Showing with 108 additions and 98 deletions.
  1. +20 −3 src/features/unitInfo/UnitInfo/UnitInfo.jsx
  2. +88 −95 src/features/unitInfo/UnitOrganization.jsx
@@ -1,16 +1,33 @@
import React, {Component} from "react";
import {
Segment
Segment,
Grid,
Header,
} from "semantic-ui-react";
import UnitOrganization from "../UnitOrganization";
import UnitInfoForm from "./UnitInfoForm";
class UnitInfo extends Component {
render() {
return (
<Segment attached="bottom">
<UnitInfoForm />
<Segment>
<Grid>
<Grid.Column width={10}>
<Header as="h3">Unit Table of Organization</Header>
<Segment>
<UnitOrganization />
</Segment>
</Grid.Column>
<Grid.Column width={6}>
<Header as="h3">Edit Unit</Header>
<Segment>
<UnitInfoForm />
</Segment>
</Grid.Column>
</Grid>
</Segment>
);
}
@@ -11,121 +11,114 @@ const UnitOrganization = () => {
return (
<Segment>
<Grid>
<Grid.Column width={10}>
<Header as="h3">Unit Table of Organization</Header>
<List size="large">
<List size="large">
<List.Item>
<List.Icon name="cubes" />
<List.Content>
<List.Header>Black Widow Company</List.Header>
<List.List>
<List.Item>
<List.Icon name="cubes" />
<List.Icon name="cube" />
<List.Content>
<List.Header>Black Widow Company</List.Header>
<List.Header>Command Lance</List.Header>
<List.List>
<List.Item>
<List.Icon name="cube" />
<List.Icon name="user" />
<List.Content>
<List.Header>Command Lance</List.Header>
<List.List>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Cpt. Natasha Kerensky - WHM-6R Warhammer</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Colin Maclaren - MAD-3R Marauder</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Lynn Sheridan - CRD-3R Crusader</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>John Hayes - GRF-1N Griffin</List.Header>
</List.Content>
</List.Item>
</List.List>
<List.Header>Cpt. Natasha Kerensky - WHM-6R Warhammer</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Colin Maclaren - MAD-3R Marauder</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Lynn Sheridan - CRD-3R Crusader</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>John Hayes - GRF-1N Griffin</List.Header>
</List.Content>
</List.Item>
</List.List>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="cube" />
<List.Content>
<List.Header>Fire Lance</List.Header>
<List.List>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Lt. Takiro Ikeda - ARC-2R Archer</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Miklos Delius - ARC-2R Archer</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Nikolai Koniev - WSP-1A Wasp</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="cube" />
<List.Icon name="user" />
<List.Content>
<List.Header>Fire Lance</List.Header>
<List.List>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Lt. Takiro Ikeda - ARC-2R Archer</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Miklos Delius - ARC-2R Archer</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Nikolai Koniev - WSP-1A Wasp</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Alex Ward - STG-3R Stinger</List.Header>
</List.Content>
</List.Item>
</List.List>
<List.Header>Alex Ward - STG-3R Stinger</List.Header>
</List.Content>
</List.Item>
</List.List>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="cube" />
<List.Content>
<List.Header>Recon Lance</List.Header>
<List.List>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Lt. John "Gentleman Johnny" Clavell - RFL-3N Rifleman</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Piet Nichols - PXH-1K Phoenix Hawk</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Simon Fraser - STG-3R Stinger</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="cube" />
<List.Icon name="user" />
<List.Content>
<List.Header>Recon Lance</List.Header>
<List.List>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Lt. John "Gentleman Johnny" Clavell - RFL-3N Rifleman</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Piet Nichols - PXH-1K Phoenix Hawk</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Simon Fraser - STG-3R Stinger</List.Header>
</List.Content>
</List.Item>
<List.Item>
<List.Icon name="user" />
<List.Content>
<List.Header>Mohammar Jahan - STG-3R Stinger</List.Header>
</List.Content>
</List.Item>
</List.List>
<List.Header>Mohammar Jahan - STG-3R Stinger</List.Header>
</List.Content>
</List.Item>
</List.List>
</List.Content>
</List.Item>
</List>
</Grid.Column>
</Grid>
</Segment>
</List.List>
</List.Content>
</List.Item>
</List>
)
}

0 comments on commit d18161b

Please sign in to comment.