Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change copy #202

Merged
merged 1 commit into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading