Skip to content

Commit

Permalink
Merge pull request #61 from SynfiniDLT/typescript-formatting
Browse files Browse the repository at this point in the history
code formatting in ts
  • Loading branch information
hgrano authored May 29, 2024
2 parents e947af7 + 0d297e1 commit ce58691
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions wallet-ui/src/pages/OfferTakeFormScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export const OfferAcceptFormScreen: React.FC = () => {
<h3 className="profile__title" style={{ marginTop: "10px" }}>
{state.offer.payload.offerDescription}
</h3>
{referenceId === "" && (
{
referenceId === "" &&
<DivBorderRoundContainer>
<form onSubmit={handleSubmit}>
<ContainerDiv>
Expand Down Expand Up @@ -190,7 +191,8 @@ export const OfferAcceptFormScreen: React.FC = () => {
Submit
</button>
</form>
{error !== "" &&
{
error !== "" &&
<ContainerColumn style={{minWidth: "400px"}}>
<ContainerColumnValue>
<span
Expand All @@ -208,11 +210,11 @@ export const OfferAcceptFormScreen: React.FC = () => {
</ContainerColumn>
}
</DivBorderRoundContainer>
)}
<div>
{referenceId !== "" && (
<>
<p><br/></p>
}
{
referenceId !== "" &&
<>
<p><br/></p>
<ContainerDiv>
<ContainerColumn>
<ContainerColumnKey>Transaction Id:</ContainerColumnKey>
Expand All @@ -228,17 +230,18 @@ export const OfferAcceptFormScreen: React.FC = () => {

<ContainerColumn style={{minWidth: "400px"}}>
<ContainerColumnValue>
<a href={`http://${window.location.host}/settlements#${referenceId}`} style={{color: "#66FF99", textDecoration: "underline"}}>
<a
href={`http://${window.location.host}/settlements#${referenceId}`}
style={{color: "#66FF99", textDecoration: "underline"}}>
{referenceId} {" "}<BoxArrowUpRight />
</a>
</ContainerColumnValue>
<ContainerColumnValue>
</ContainerColumnValue>
</ContainerColumn>
</ContainerDiv>
</>
)}
</div>
</>
}
</PageLayout>
);
};

0 comments on commit ce58691

Please sign in to comment.