Skip to content

Commit 5975983

Browse files
committed
chore(ui): <DetailsRuleMeta/>, add link to DID page
1 parent 252d135 commit 5975983

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/component-library/pages/Rule/details/DetailsRuleMeta.tsx

+10-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { NullBadge } from '@/component-library/features/badges/NullBadge';
1010
import { RuleStateBadge } from '@/component-library/features/badges/Rule/RuleStateBadge';
1111
import { RuleGroupingBadge } from '@/component-library/features/badges/Rule/RuleGroupingBadge';
1212
import { RuleNotificationBadge } from '@/component-library/features/badges/Rule/RuleNotificationBadge';
13+
import { ClickableCell } from '@/component-library/features/table/cells/ClickableCell';
1314

1415
export const DetailsRuleMeta = ({ meta }: { meta: RuleMetaViewModel }) => {
1516
const getExpiredField = () => {
@@ -27,10 +28,15 @@ export const DetailsRuleMeta = ({ meta }: { meta: RuleMetaViewModel }) => {
2728
<RuleStateBadge value={meta.state} />
2829
</KeyValueRow>
2930
<KeyValueRow name="DID">
30-
<Field>
31-
{meta.scope}:{meta.name}
32-
</Field>
33-
<DIDTypeBadge value={meta.did_type} />
31+
<ClickableCell
32+
className="flex flex-row gap-2 overflow-hidden"
33+
href={`/did/page/${encodeURIComponent(meta.scope)}/${encodeURIComponent(meta.name)}`}
34+
>
35+
<Field>
36+
{meta.scope}:{meta.name}
37+
</Field>
38+
<DIDTypeBadge value={meta.did_type} />
39+
</ClickableCell>
3440
</KeyValueRow>
3541
<KeyValueRow name="RSE Expression">
3642
<Field>{meta.rse_expression}</Field>

0 commit comments

Comments
 (0)