New: make the shortCode column redirect to the url
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m31s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m31s
This commit is contained in:
@@ -42,7 +42,14 @@ const ListRedirections = () => {
|
|||||||
const Redirection = (props: { item: URLRedirection }) => {
|
const Redirection = (props: { item: URLRedirection }) => {
|
||||||
return (
|
return (
|
||||||
<tr>
|
<tr>
|
||||||
<td class="border p-2">{props.item.shortCode}</td>
|
<td class="border p-2">
|
||||||
|
<a
|
||||||
|
href={`https://l.kocoder.xyz/${props.item.shortCode}`}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
{props.item.shortCode}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
<td class="border p-2">{props.item.url}</td>
|
<td class="border p-2">{props.item.url}</td>
|
||||||
<td class="border p-2">{props.item.isActive ? "Yes" : "No"}</td>
|
<td class="border p-2">{props.item.isActive ? "Yes" : "No"}</td>
|
||||||
<td class="border p-2">
|
<td class="border p-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user