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

Improve texts #129

Merged
merged 2 commits into from
Jan 11, 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
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const App = () => {
const [BearerSignatureHeader] = useState("X-Bearer-Signature");
const [BearerSignatureKeyHeader] = useState("X-Bearer-Signature-Key");
const [BearerLifetime] = useState("X-Bearer-Lifetime");

const [params] = useState({
rest_gw: process.env.REACT_APP_RESTGW ? process.env.REACT_APP_RESTGW : 'https://rest.t5.fs.neo.org/v1',
http_gw: process.env.REACT_APP_HTTPGW ? process.env.REACT_APP_HTTPGW : 'https://http.t5.fs.neo.org',
Expand Down Expand Up @@ -766,7 +766,7 @@ export const App = () => {
<Heading align="center" size={5} weight="bold">New container</Heading>
{modal.text.neoFSBalance === 0 && (
<Notification className="error_message" style={{ margin: '20px 0' }}>
Container creation is a paid operation, make sure you have sufficient NeoFS balance
Container creation is a paid operation, make sure you have sufficient NeoFS chain balance
</Notification>
)}
<Form.Field>
Expand Down
2 changes: 1 addition & 1 deletion src/Functions/handle.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function formatForTreeView(objects) {

objects[i].fullName = `${objects[i].filePath ? `${objects[i].filePath.trim()}/` : ''}${objects[i].name.trim()}`;
}

objects.sort((a, b) => {
if (a.fullName < b.fullName) {
return -1;
Expand Down
6 changes: 3 additions & 3 deletions src/Functions/handle.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('testTreeView', () => {
}, {
"address": { "containerId": "123", "objectId": "456" }
}];

const tree = {
"/": [{
"address": { "containerId": "123", "objectId": "456" },
Expand Down Expand Up @@ -54,7 +54,7 @@ describe('testTreeView', () => {
"address": { "containerId": "789", "objectId": "012" },
"filePath": "345/ё\\ferkln/kmper/\\\\v////4345fk/-~s\\%<dp>20q\]%r",
}];

const tree = {
"345": {
"/": [],
Expand Down Expand Up @@ -121,7 +121,7 @@ describe('testTreeView', () => {
"name": "cat.jpg",
"filePath": "/root/obj.txt",
}];

const tree = {
"/": [{
"address": {
Expand Down
2 changes: 1 addition & 1 deletion src/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Home = ({
Connect wallet
</Button>
<Heading align="center" size={6} weight="normal">
We support <a href="https://melanke.github.io/aero-beta/" target="_blank" rel="noopener noreferrer">Aero web wallet</a>, <a href="https://neonwallet.com/" target="_blank" rel="noopener noreferrer">NEON wallet</a>
Tested with <a href="https://melanke.github.io/aero-beta/" target="_blank" rel="noopener noreferrer">Aero web wallet</a>, <a href="https://neonwallet.com/" target="_blank" rel="noopener noreferrer">NEON wallet</a>
</Heading>
</>
)}
Expand Down
12 changes: 6 additions & 6 deletions src/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Profile = ({
if (e.message) {
onPopup('failed', e.message);
} else {
onPopup('success', 'NeoFS balance has been updated');
onPopup('success', 'NeoFS chain balance has been updated');
setNeoFSBalance(e.value);
setTimeout(() => {
setIsLoadingNeoFSBalance(false);
Expand Down Expand Up @@ -115,7 +115,7 @@ const Profile = ({
});
setIsLoadingNeoBalance(false);
if (!response.error && response.stack.length > 0) {
onPopup('success', 'Neo balance has been updated');
onPopup('success', 'Mainnet balance has been updated');
setNeoBalance(response.stack[0].value);
setTimeout(() => {
setIsLoadingNeoBalance(false);
Expand Down Expand Up @@ -290,7 +290,7 @@ const Profile = ({
/>
)}
</Heading>
<Heading size={6} weight="bold">Neo Balance</Heading>
<Heading size={6} weight="bold">Mainnet balance</Heading>
</Tile>
</Tile>
<Tile kind="parent">
Expand Down Expand Up @@ -327,7 +327,7 @@ const Profile = ({
/>
)}
</Heading>
<Heading size={6} weight="bold">NeoFS Balance</Heading>
<Heading size={6} weight="bold">NeoFS chain balance</Heading>
</Tile>
</Tile>
</Tile>
Expand All @@ -338,7 +338,7 @@ const Profile = ({
renderAs={Notification}
color="grey"
>
<Heading size={5}>Deposit NeoFS</Heading>
<Heading size={5}>Deposit to NeoFS contract</Heading>
<Form.Field>
<Form.Label size="small" weight="light">Quantity (GAS)</Form.Label>
<Form.Control>
Expand Down Expand Up @@ -372,7 +372,7 @@ const Profile = ({
renderAs={Notification}
color="grey"
>
<Heading size={5}>Withdraw NeoFS</Heading>
<Heading size={5}>Withdraw from NeoFS contract</Heading>
<Form.Field>
<Form.Label size="small">Quantity (GAS)</Form.Label>
<Form.Control>
Expand Down
Loading