fix: add/edit lcr should have secondary text to explain the purpose of lcr (#247)

This commit is contained in:
Hoan Luu Huu
2023-05-11 03:05:57 +07:00
committed by GitHub
parent 4d7e84fa43
commit 3d9a39ac3b
2 changed files with 14 additions and 2 deletions
@@ -1,5 +1,5 @@
import React from "react";
import { H1 } from "@jambonz/ui-kit";
import { H1, M } from "@jambonz/ui-kit";
import { LcrForm } from "./form";
@@ -7,6 +7,12 @@ export const AddLcr = () => {
return (
<>
<H1 className="h2">Add outbound call routes</H1>
<section>
<M>
Outbound call routing is used to select a carrier when there are
multiple carriers available.
</M>
</section>
<LcrForm />
</>
);
@@ -1,5 +1,5 @@
import React from "react";
import { H1 } from "@jambonz/ui-kit";
import { H1, M } from "@jambonz/ui-kit";
import LcrForm from "./form";
import { useApiData } from "src/api";
import { Lcr, LcrRoute } from "src/api/types";
@@ -15,6 +15,12 @@ export const EditLcr = () => {
return (
<>
<H1 className="h2">Edit outbound call routes</H1>
<section>
<M>
Outbound call routing is used to select a carrier when there are
multiple carriers available.
</M>
</section>
<LcrForm
lcrDataMap={{ data: lcrData, refetch: lcrRefect, error: lcrError }}
lcrRouteDataMap={{