Renamed entrypoint fieldname
This commit is contained in:
parent
efc06be1f6
commit
c555df3ff7
@ -5,7 +5,7 @@ import styled from 'styled-components';
|
||||
import { AppState } from '../../redux/app';
|
||||
import { ChangeEntrypointAction, ChangeMichelsonFormatAction, CompileState, MichelsonFormat } from '../../redux/compile';
|
||||
import { CheckboxComponent } from '../form/checkbox';
|
||||
import { Group, HGroup, Input, Label } from '../form/inputs';
|
||||
import { AccessFunctionLabel, Group, HGroup, Input, Label } from '../form/inputs';
|
||||
|
||||
const Container = styled.div``;
|
||||
|
||||
@ -26,7 +26,7 @@ export const CompilePaneComponent = () => {
|
||||
return (
|
||||
<Container>
|
||||
<Group>
|
||||
<Label htmlFor="entrypoint">Entrypoint</Label>
|
||||
<AccessFunctionLabel htmlFor="entrypoint"></AccessFunctionLabel>
|
||||
<Input
|
||||
id="entrypoint"
|
||||
value={entrypoint}
|
||||
|
@ -5,7 +5,7 @@ import styled from 'styled-components';
|
||||
import { AppState } from '../../redux/app';
|
||||
import { ChangeEntrypointAction, ChangeStorageAction, DeployState, UseTezBridgeAction } from '../../redux/deploy';
|
||||
import { CheckboxComponent } from '../form/checkbox';
|
||||
import { Group, HGroup, Input, Label, Textarea } from '../form/inputs';
|
||||
import { AccessFunctionLabel, Group, HGroup, Input, Label, Textarea } from '../form/inputs';
|
||||
|
||||
const Container = styled.div``;
|
||||
|
||||
@ -33,7 +33,7 @@ export const DeployPaneComponent = () => {
|
||||
return (
|
||||
<Container>
|
||||
<Group>
|
||||
<Label htmlFor="entrypoint">Entrypoint</Label>
|
||||
<AccessFunctionLabel htmlFor="entrypoint"></AccessFunctionLabel>
|
||||
<Input
|
||||
id="entrypoint"
|
||||
value={entrypoint}
|
||||
|
@ -4,7 +4,7 @@ import styled from 'styled-components';
|
||||
|
||||
import { AppState } from '../../redux/app';
|
||||
import { ChangeEntrypointAction, ChangeParametersAction, ChangeStorageAction, DryRunState } from '../../redux/dry-run';
|
||||
import { Group, Input, Label, Textarea } from '../form/inputs';
|
||||
import { AccessFunctionLabel, Group, Input, Label, Textarea } from '../form/inputs';
|
||||
|
||||
const Container = styled.div``;
|
||||
|
||||
@ -23,7 +23,7 @@ export const DryRunPaneComponent = () => {
|
||||
return (
|
||||
<Container>
|
||||
<Group>
|
||||
<Label htmlFor="entrypoint">Entrypoint</Label>
|
||||
<AccessFunctionLabel htmlFor="entrypoint"></AccessFunctionLabel>
|
||||
<Input
|
||||
id="entrypoint"
|
||||
value={entrypoint}
|
||||
|
@ -20,7 +20,7 @@ export const EvaluateFunctionPaneComponent = () => {
|
||||
return (
|
||||
<Container>
|
||||
<Group>
|
||||
<Label htmlFor="entrypoint">Entrypoint</Label>
|
||||
<Label htmlFor="entrypoint">Function name</Label>
|
||||
<Input
|
||||
id="entrypoint"
|
||||
value={entrypoint}
|
||||
|
@ -17,7 +17,7 @@ export const EvaluateValuePaneComponent = () => {
|
||||
return (
|
||||
<Container>
|
||||
<Group>
|
||||
<Label htmlFor="entrypoint">Entrypoint</Label>
|
||||
<Label htmlFor="entrypoint">Expression</Label>
|
||||
<Input
|
||||
id="entrypoint"
|
||||
value={entrypoint}
|
||||
|
@ -1,3 +1,4 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
export const Group = styled.div`
|
||||
@ -16,6 +17,21 @@ export const Label = styled.label`
|
||||
user-select: none;
|
||||
`;
|
||||
|
||||
export const Hint = styled.span`
|
||||
font-style: italic;
|
||||
font-size: 0.8em;
|
||||
`;
|
||||
|
||||
export const AccessFunctionLabel = (props: any) => {
|
||||
return (
|
||||
<Label {...props}>
|
||||
Access Function
|
||||
<br />
|
||||
<Hint>The function name from where your contract will start</Hint>
|
||||
</Label>
|
||||
);
|
||||
};
|
||||
|
||||
export const Input = styled.input`
|
||||
margin: 0.3em 0 0.7em 0;
|
||||
background-color: var(--input_background);
|
||||
|
Loading…
Reference in New Issue
Block a user