Point groups of error codes to their individual pages.
This commit is contained in:
		@@ -7,11 +7,18 @@ interface Props {
 | 
			
		||||
 | 
			
		||||
const ResultLink: FC<Props> = ({ result }) => {
 | 
			
		||||
  if (!result) return null;
 | 
			
		||||
  let href: string;
 | 
			
		||||
  if (result === "tesSUCCESS") {
 | 
			
		||||
    href = "https://xrpl.org/tes-success.html";
 | 
			
		||||
  } else {
 | 
			
		||||
    // Going shortcut here because of url structure, if that changes we will do it manually
 | 
			
		||||
    href = `https://xrpl.org/${result.slice(0, 3)}-codes.html`;
 | 
			
		||||
  }
 | 
			
		||||
  return (
 | 
			
		||||
    <Link
 | 
			
		||||
      as="a"
 | 
			
		||||
      title={result}
 | 
			
		||||
      href={"https://xrpl.org/transaction-results.html"}
 | 
			
		||||
      href={href}
 | 
			
		||||
      target="_blank"
 | 
			
		||||
      rel="noopener noreferrer"
 | 
			
		||||
    >
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user