Skip to content
Snippets Groups Projects
Commit 90a45830 authored by meskio's avatar meskio :tent:
Browse files

Show transaction for order and refund

parent cff605bc
No related branches found
No related tags found
No related merge requests found
import React, { useState } from "react"; import React, { useState } from "react";
import { useParams } from "react-router-dom"; import { useParams, Redirect } from "react-router-dom";
import { Container, Row, Col } from "react-bootstrap"; import { Container, Row, Col } from "react-bootstrap";
import Fetcher from "./Fetcher"; import Fetcher from "./Fetcher";
import ShowPurchase from "./purchase/ShowPurchase"; import ShowPurchase from "./purchase/ShowPurchase";
...@@ -17,6 +17,10 @@ function ShowTransaction() { ...@@ -17,6 +17,10 @@ function ShowTransaction() {
case "topup": case "topup":
show_list = <p>{transaction.topup.comment}</p>; show_list = <p>{transaction.topup.comment}</p>;
break; break;
case "order":
return <Redirect to={"/order/" + transaction.order.ID} />;
case "refund":
return <Redirect to={"/order/" + transaction.refund.ID} />;
default: default:
show_list = null; show_list = null;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment