Skip to content

Commit

Permalink
copy update
Browse files Browse the repository at this point in the history
  • Loading branch information
NickJ202 committed Jan 2, 2025
1 parent 24b4bb5 commit ba540f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/helpers/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const language = {
copyWalletAddress: `Copy wallet address`,
create: `Create`,
createProfile: `Create Your Profile`,
createProfileToContinue: `Create your profile to continue`,
createdBy: `Created by`,
createdOn: `Created on`,
currentOwners: `Current owners`,
Expand Down Expand Up @@ -73,6 +74,7 @@ export const language = {
goTo: `Go to`,
implements: `Implements`,
interactions: `Interactions`,
insufficientBalance: `Not enough tokens to purchase this asset`,
lastUCMUpdate: `Last UCM Update`,
leaderboard: `Leaderboard`,
learn: `Learn`,
Expand All @@ -92,6 +94,7 @@ export const language = {
noCollectionsFound: `No collections found`,
noActivity: `No activity found`,
noListings: `No listings`,
nonTransferable: `This asset cannot be transferred`,
orderProcessed: `Your order has been processed`,
ordersUpdating: `Orders are being updated`,
other: `Other`,
Expand All @@ -113,6 +116,7 @@ export const language = {
profileMenu: `Profile menu`,
provenanceDetails: `Provenance Details`,
quantity: `Quantity`,
quantityMustBeInteger: `Quantity must be an integer`,
recentActivity: `Recent Activity`,
recipient: `Recipient`,
removeAvatar: `Remove avatar`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -900,13 +900,13 @@ export default function AssetActionMarketOrders(props: IProps) {
{getAction(false)}
{!arProvider.walletAddress && (
<S.MessageWrapper>
<span>Connect your wallet to continue</span>
<span>{language.connectToContinue}</span>
</S.MessageWrapper>
)}
{!arProvider.profile ||
(!arProvider.profile.id && (
<S.MessageWrapper>
<span>Create your profile to continue</span>
<span>{language.createProfileToContinue}</span>
</S.MessageWrapper>
))}
{appProvider.ucm.updating && (
Expand All @@ -918,17 +918,17 @@ export default function AssetActionMarketOrders(props: IProps) {
getTotalTokenBalance(arProvider.tokenBalances[AO.defaultToken]) !== null &&
insufficientBalance && (
<S.MessageWrapper warning>
<span>Not enough tokens to purchase this asset</span>
<span>{language.insufficientBalance}</span>
</S.MessageWrapper>
)}
{!Number.isInteger(Number(currentOrderQuantity)) && !denomination && (
<S.MessageWrapper warning>
<span>Quantity must be an integer</span>
<span>{language.quantityMustBeInteger}</span>
</S.MessageWrapper>
)}
{props.asset && !props.asset.state.transferable && (
<S.MessageWrapper warning>
<span>This asset cannot be transferred</span>
<span>{language.nonTransferable}</span>
</S.MessageWrapper>
)}
</S.ActionWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ export const MessageWrapper = styled.div<{ warning?: boolean }>`
justify-content: center;
background: ${(props) =>
props.warning ? props.theme.colors.warning.primary : props.theme.colors.container.alt11.background};
border: 1px solid
${(props) => (props.warning ? props.theme.colors.warning.primary : props.theme.colors.border.primary)};
border: 1px solid ${(props) => (props.warning ? props.theme.colors.warning.primary : props.theme.colors.border.alt3)};
border-radius: ${STYLING.dimensions.radius.alt1};
span {
font-size: ${(props) => props.theme.typography.size.xSmall};
Expand Down

0 comments on commit ba540f7

Please sign in to comment.