diff --git a/src/components/PathMatchRenameModal.tsx b/src/components/PathMatchRenameModal.tsx index 13d83bd1..101dea19 100644 --- a/src/components/PathMatchRenameModal.tsx +++ b/src/components/PathMatchRenameModal.tsx @@ -6,20 +6,13 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; -import { - Dialog, - DialogContent, - DialogDescription, - DialogFooter, - DialogHeader, - DialogTitle, - DialogTrigger, -} from "@app/components/ui/dialog"; + import { Badge } from "@app/components/ui/badge"; import { Label } from "@app/components/ui/label"; import { useEffect, useState } from "react"; import { Input } from "./ui/input"; import { Button } from "./ui/button"; +import { Credenza, CredenzaContent, CredenzaDescription, CredenzaFooter, CredenzaHeader, CredenzaTitle, CredenzaTrigger } from "./Credenza"; export function PathMatchModal({ @@ -68,15 +61,15 @@ export function PathMatchModal({ }; return ( - - {trigger} - - - Configure Path Matching - + + {trigger} + + + Configure Path Matching + Set up how incoming requests should be matched based on their path. - - + + Match Type @@ -102,7 +95,7 @@ export function PathMatchModal({ {getHelpText()} - + {value?.path && ( Clear @@ -111,9 +104,9 @@ export function PathMatchModal({ Save Changes - - - + + + ); } @@ -177,17 +170,17 @@ export function PathRewriteModal({ }; return ( - - + !disabled && setOpen(v)}> + {trigger} - - - - Configure Path Rewriting - + + + + Configure Path Rewriting + Transform the matched path before forwarding to the target. - - + + Rewrite Type @@ -214,7 +207,7 @@ export function PathRewriteModal({ {getHelpText()} - + {value?.rewritePath && ( Clear @@ -226,9 +219,9 @@ export function PathRewriteModal({ > Save Changes - - - + + + ); }
{getHelpText()}