refactor(instances): s/network/networks

This commit is contained in:
Sérgio Ramos 2018-05-09 11:36:16 +01:00
parent 7d8b478d20
commit 542b491b52
3 changed files with 7 additions and 7 deletions

View File

@ -21,7 +21,7 @@ import {
Name,
Image,
Package,
Network,
Networks,
Tags,
Metadata,
UserScript,
@ -142,11 +142,11 @@ class CreateInstance extends Component {
/>
</Margin>
<Margin bottom="5">
<Network
<Networks
ref={this.setIsValid('networks')}
expanded={step === 'networks'}
next="tags"
saved={steps.network}
saved={steps.networks}
onDefocus={handleDefocus('networks')}
preview={networks}
/>

View File

@ -1,7 +1,7 @@
export { default as Name } from './name';
export { default as Image } from './image';
export { default as Package } from './package';
export { default as Network } from './network';
export { default as Networks } from './networks';
export { default as Tags } from './tags';
export { default as Metadata } from './metadata';
export { default as UserScript } from './user-script';

View File

@ -32,7 +32,7 @@ const Form = styled.form`
padding-top: ${remcalc(1)};
`;
const Network = ({
const Networks = ({
preview = [],
initialValues,
handleGetValue,
@ -43,7 +43,7 @@ const Network = ({
loading,
...props
}) => (
<Step name="network" getValue={handleGetValue} {...props}>
<Step name="networks" getValue={handleGetValue} {...props}>
<StepHeader icon={<NetworkIcon />}>Networks</StepHeader>
<StepDescription href={'https://docs.joyent.com/public-cloud/network/sdn'}>
Instances are automatically connected to a private fabric network, which
@ -193,4 +193,4 @@ export default compose(
}
})
)
)(Network);
)(Networks);