pages
This commit is contained in:
1 parent
6e91d0b599
commit
34e40e8c0d
13 files changed
+399
-132
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import type { AuditEvent } from "@/api";
|
||||
|
||||
type Props = {
|
||||
events: AuditEvent[];
|
||||
onRefresh: () => Promise<void>;
|
||||
};
|
||||
|
||||
export function AuditPage({ events, onRefresh }: Props) {
|
||||
return (
|
||||
<section className="card span-full">
|
||||
<div className="row-head">
|
||||
<h2>Recent Audit Events</h2>
|
||||
<button onClick={() => void onRefresh()}>Refresh</button>
|
||||
</div>
|
||||
<pre className="output">{JSON.stringify(events, null, 2)}</pre>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user