Skip to content

Commit

Permalink
Merge f8c1c8e into a40d701
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lee committed Aug 24, 2019
2 parents a40d701 + f8c1c8e commit d70bed8
Show file tree
Hide file tree
Showing 11 changed files with 79 additions and 79 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/__snapshots__/App.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ exports[`<App /> Should render the <App /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 bnqisW"
>
Space
Volume
</span>
<div
class="StyledBox__StyledBoxGap-sc-13pk1d4-1 iChEkS"
Expand Down
10 changes: 5 additions & 5 deletions src/__tests__/components/ItemDisplayInput.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { fireEvent } from '@testing-library/react'
import ItemDisplayInput from '../../components/ItemDisplayInput'

const item = {
name: 'Test Item',
space: 1,
value: 1,
id: '0',
destination: {
name: 'Test Planet 2',
value: 50
},
quantity: 10
id: '0',
name: 'Test Item',
quantity: 10,
value: 1,
volume: 1
}

describe('<ItemDisplayInput />', () => {
Expand Down
30 changes: 15 additions & 15 deletions src/__tests__/views/__snapshots__/planets.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -133,7 +133,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -223,7 +223,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -313,7 +313,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -403,7 +403,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -528,7 +528,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -577,7 +577,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -626,7 +626,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -675,7 +675,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -724,7 +724,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -808,7 +808,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -857,7 +857,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -906,7 +906,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -955,7 +955,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down Expand Up @@ -1004,7 +1004,7 @@ exports[`<PlanetsView /> Should render the <PlanetsView /> component. 1`] = `
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Space: 1
Volume: 1
</span>
</div>
<div
Expand Down
12 changes: 6 additions & 6 deletions src/__tests__/views/planets.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ const customState = {
cargo: {
items: [
{
name: 'Test Item',
space: 1,
quantity: 1,
value: 1,
id: '0',
destination: {
name: 'Test Planet 2',
value: 50
}
},
id: '0',
name: 'Test Item',
quantity: 1,
value: 1,
volume: 1
}
],
volumeRemaining: 4
Expand Down
12 changes: 6 additions & 6 deletions src/__tests__/views/ship.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ const customState = {
cargo: {
items: [
{
name: 'Test Item',
space: 1,
value: 1,
id: '0',
quantity: 1,
destination: {
name: 'Test Planet 2',
value: 50
}
},
id: '0',
name: 'Test Item',
quantity: 1,
volume: 1,
value: 1
}
],
volumeRemaining: 4
Expand Down
4 changes: 2 additions & 2 deletions src/components/ContractsDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const ContractsDisplay = ({ contracts }) => {
<Box direction="row" key={contract.id} gap="small">
<Text weight="bold">Item Type</Text>
<Text>{contract.itemType}</Text>
<Text weight="bold">Space</Text>
<Text>{contract.space}</Text>
<Text weight="bold">Volume</Text>
<Text>{contract.volume}</Text>
<Text weight="bold">Value</Text>
<Text>{contract.value}</Text>
</Box>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ItemDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { connect } from 'react-redux'
import ItemDisplayInput from './ItemDisplayInput'

const ItemDisplay = ({ item, location, shipLocationValue }) => {
const { destination, id, name, quantity, space, value } = item
const { destination, id, name, quantity, volume, value } = item

return (
<Box
Expand All @@ -23,7 +23,7 @@ const ItemDisplay = ({ item, location, shipLocationValue }) => {
<Text>Quantity: {quantity}</Text>
</Box>
<Box pad="medium">
<Text>Space: {space}</Text>
<Text>Volume: {volume}</Text>
</Box>
<Box pad="medium">
<Text>Value: {value}</Text>
Expand Down
46 changes: 23 additions & 23 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,62 +8,62 @@ export const views = {

const spaceJunk = {
name: 'Space Junk',
space: 1,
value: 1
value: 1,
volume: 0.1
}

const ore = {
name: 'Ore',
space: 1,
value: 2
value: 2,
volume: 1
}

const plasma = {
name: 'Plasma',
space: 1,
value: 3
value: 3,
volume: 0.4
}

const antibiotics = {
name: 'Antibiotics',
space: 1,
value: 2
value: 2,
volume: 0.1
}

const tobacco = {
name: 'Tobacco',
space: 1,
value: 3
value: 3,
volume: 0.2
}

const soil = {
name: 'Soil',
space: 2,
value: 1
volume: 2,
value: 0.5
}

const ammunition = {
name: 'Ammunition',
space: 1,
value: 3
value: 3,
volume: 0.8
}

const glass = {
name: 'Glass',
space: 1,
value: 1
value: 1,
volume: 1
}

const silver = {
name: 'Silver',
space: 1,
value: 4
value: 4,
volume: 0.5
}

const gold = {
name: 'Gold',
space: 1,
valu: 5
value: 5,
volume: 0.5
}

export const itemList = [
Expand Down Expand Up @@ -3804,7 +3804,7 @@ export const planets = [
'Cicero',
'Cichocki',
'Ciconia',
'Cieletespace',
'Cieletevolume',
'Cielobuio',
'Cilek',
'Cilla',
Expand Down Expand Up @@ -18330,8 +18330,8 @@ export const planets = [
'Sova',
'Soyounchoi',
'Soyuz-Apollo',
'Spacesora',
'Spacewatch',
'volumesora',
'volumewatch',
'Spadolini',
'Spahr',
'Spalatin',
Expand Down

0 comments on commit d70bed8

Please sign in to comment.