Skip to content

Commit

Permalink
feat(console): added ability to refresh data in table resources (#7164)
Browse files Browse the repository at this point in the history
Co-authored-by: David Boyne <[email protected]>
Co-authored-by: monada-bot[bot] <[email protected]>
  • Loading branch information
3 people authored Sep 24, 2024
1 parent c050dd6 commit aa4c086
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { ArrowPathIcon } from "@heroicons/react/24/outline";
import { Button } from "@wingconsole/design-system";
import { memo } from "react";

import { trpc } from "../../../trpc.js";
Expand All @@ -18,6 +20,15 @@ export const CustomResourceTable = memo(
<div className="h-full flex-1 flex flex-col text-sm pl-4">
<div className="flex flex-col gap-2">
<div className="flex flex-col space-y-1">
<div className="flex items-center gap-1 justify-end">
<Button
label="Refresh"
icon={ArrowPathIcon}
onClick={() => {
tableScan.refetch();
}}
/>
</div>
<div className="flex items-center gap-2 justify-end">
{tableScan.data && (
<TableInteraction
Expand Down

0 comments on commit aa4c086

Please sign in to comment.