Use not-stupid properties on hammer page
This commit is contained in:
parent
8e5ff1f974
commit
ee15d21a78
@ -116,7 +116,7 @@ export default function () {
|
|||||||
const cardList = [];
|
const cardList = [];
|
||||||
|
|
||||||
for (const entry of history) {
|
for (const entry of history) {
|
||||||
const url = entry.entity.properties.evidence.stringValue;
|
const url = entry.evidence;
|
||||||
const isUrl = () => {
|
const isUrl = () => {
|
||||||
try {
|
try {
|
||||||
new URL(url).href;
|
new URL(url).href;
|
||||||
@ -131,9 +131,7 @@ export default function () {
|
|||||||
<Card>
|
<Card>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<Heading size="md">
|
<Heading size="md">
|
||||||
{new Date(
|
{new Date(entry.executed_at).toLocaleString()}
|
||||||
parseInt(entry.entity.properties.executed_at.integerValue),
|
|
||||||
).toLocaleString()}
|
|
||||||
</Heading>
|
</Heading>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardBody>
|
<CardBody>
|
||||||
@ -141,7 +139,7 @@ export default function () {
|
|||||||
<Box>
|
<Box>
|
||||||
<Heading size="xs">ACTION</Heading>
|
<Heading size="xs">ACTION</Heading>
|
||||||
<Text pt="2" size="sm">
|
<Text pt="2" size="sm">
|
||||||
{entry.entity.properties.action.stringValue}
|
{entry.action}
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user