Skip to content

Commit

Permalink
Merge pull request #202 from cosmology-tech/luca/change-copy
Browse files Browse the repository at this point in the history
Change copy
  • Loading branch information
marslavish authored Aug 24, 2024
2 parents 4aae611 + 02ec9cf commit 9da1e7b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ export const InstantiatePermissionRadio = ({
}}
>
<Radio value={AccessType.ACCESS_TYPE_EVERYBODY.toString()}>
Anyone can instantiate (Everybody)
Open to everyone
</Radio>
<Radio value={AccessType.ACCESS_TYPE_NOBODY.toString()}>
Instantiate through governance only (Nobody)
Governance approval only
</Radio>
<Radio value={AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES.toString()}>
Only a set of addresses can instantiate (AnyOfAddresses)
Specified addresses only
</Radio>
</RadioGroup>

Expand Down
10 changes: 5 additions & 5 deletions examples/chain-template/components/contract/InstantiateTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,16 @@ export const InstantiateTab = ({

<Divider opacity="0.4" />

<InputField title="Label (Required)">
<InputField title="Contract Name (Required)">
<TextField
id="label"
value={label}
onChange={(e) => setLabel(e.target.value)}
autoComplete="off"
/>
<InputField.Description>
The contract&apos;s label help briefly describe the contract and what
it does.
Provide a short description of the contract&apos;s purpose and
functionality.
</InputField.Description>
</InputField>

Expand All @@ -196,11 +196,11 @@ export const InstantiateTab = ({
/>
<InputField.Description intent={adminInputErr ? 'error' : 'default'}>
{adminInputErr ||
"The contract's admin will be able to migrate and update future admins."}
'The contract admin can transfer ownership and perform future upgrades.'}
</InputField.Description>
</InputField>

<InputField title="Instantiate Message">
<InputField title="Instantiate Message">
<JsonInput value={initMsg} setValue={setInitMsg} height="342px" />
</InputField>

Expand Down
10 changes: 5 additions & 5 deletions examples/chain-template/components/contract/SelectCodeField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export const SelectCodeField = ({
value={method}
onChange={(val) => setMethod(val as Method)}
>
<Radio value="select-existing">Select from your code</Radio>
<Radio value="fill-manually">Fill Code ID manually</Radio>
<Radio value="select-existing">Choose from uploaded codes</Radio>
<Radio value="fill-manually">Enter Code ID manually</Radio>
</RadioGroup>

<SelectCode
Expand Down Expand Up @@ -126,12 +126,12 @@ const SelectCode = ({
</Box>
) : (
<Text color="$blackAlpha600" fontSize="16px" fontWeight="500">
Please Select Code
Choose Code
</Text>
)}
</Box>
<Button onClick={onOpen} variant="text" px="10px">
{selectedCode ? 'Change' : 'Select'} Code
{selectedCode ? 'Change Code' : 'Browse'}
</Button>
</Box>
{!canInstantiate && (
Expand Down Expand Up @@ -240,7 +240,7 @@ const FillCodeId = ({
<InputField.Description
intent={status.state === 'error' ? 'error' : 'default'}
>
{status?.message || 'Input existing Code ID manually'}
{status?.message || 'Enter the ID of an existing Code'}
</InputField.Description>
</InputField>
</Box>
Expand Down
11 changes: 5 additions & 6 deletions examples/chain-template/components/contract/UploadTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const UploadTab = ({ show, switchTab }: UploadTabProps) => {
Upload Contract
</Text>

<InputField title="Upload Wasm File">
<InputField title="Select Wasm File">
<FileUpload file={wasmFile} setFile={setWasmFile} />
</InputField>

Expand All @@ -184,17 +184,16 @@ export const UploadTab = ({ show, switchTab }: UploadTabProps) => {
autoComplete="off"
/>
<InputField.Description>
A short description of what your code does. This is stored locally on
your device.
Brief description of contract functionality. Saved locally on your
device.
</InputField.Description>
</InputField>

<Divider opacity="0.4" />

<InputField title="Instantiate Permission">
<InputField title="Contract Access Control">
<InputField.Description>
Specify who has the authority to instantiate the contract using this
code
Choose who can create new instances of this contract
</InputField.Description>
<InstantiatePermissionRadio
addresses={addresses}
Expand Down

0 comments on commit 9da1e7b

Please sign in to comment.