Skip to content

Commit

Permalink
Minor wording changes on the front
Browse files Browse the repository at this point in the history
  • Loading branch information
hemulin committed Dec 4, 2023
1 parent 503a24a commit 3bfaf80
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const NavigationBar: React.FC = ({ ...props }) => {
}}
onClick={() => navigate("/accounts/register")}
>
Register
Register user
</Box>
</Box>
)}
Expand All @@ -68,7 +68,7 @@ export const NavigationBar: React.FC = ({ ...props }) => {
}}
onClick={() => navigate("/admin/orders")}
>
Orders
Orders management
</Box>
)}
{!authContext.isAdmin && (
Expand All @@ -79,7 +79,7 @@ export const NavigationBar: React.FC = ({ ...props }) => {
}}
onClick={() => navigate("/client/issue")}
>
Issue
Place order
</Box>
)}
<Box
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/pages/admin/pages/OrdersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ export const OrdersPage: React.FC = () => {

await Promise.all(
Array.from(Array(details.currentEpoch.toNumber() + 1))
.map(async (_, index) => {
epochList[index] = {
...(await contract.epochDetails(tokenAddress, index)) as any,
orders: (await contract.epochOrders(tokenAddress, index))
};
})
);

setTokenDetails({
.map(async (_, index) => {
epochList[index] = {
...(await contract.epochDetails(tokenAddress, index)) as any,
orders: (await contract.epochOrders(tokenAddress, index))
};
})
);

setTokenDetails({
tokenDetails: {
tokenAddress,
currentEpoch: details.currentEpoch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ export const InteractionsWidget: React.FC = () => {
await tx.wait();

setLoading(false);
snackbar.enqueueSnackbar(`${!value ? "Buy" : "Sell"} success`, {
snackbar.enqueueSnackbar(`Order placed successfully`, {
variant: "success",
});
} catch (e) {
setLoading(false);
snackbar.enqueueSnackbar(`${!value ? "Buy" : "Sell"} fail`, {
snackbar.enqueueSnackbar(`Order placement failed`, {
variant: "error",
});
}
Expand Down

0 comments on commit 3bfaf80

Please sign in to comment.