Skip to content

Commit

Permalink
chore: add inspection button to inspection list
Browse files Browse the repository at this point in the history
  • Loading branch information
pantheredeye committed Dec 11, 2024
1 parent cc0f86b commit 244072f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {
FindInspectionsListQueryVariables,
} from 'types/graphql'

import { Link, routes } from '@redwoodjs/router'
import type {
CellSuccessProps,
CellFailureProps,
Expand Down Expand Up @@ -49,6 +50,12 @@ export const Success = ({
>) => {
return (
<div className="container mx-auto md:py-10 p-2">
<Link
to={routes.newInspection()}
className="flex w-full items-center justify-center rounded-xl bg-indigo-600 px-4 py-2 font-medium text-white shadow-lg hover:bg-indigo-500 focus:outline-none"
>
Add Inspection
</Link>
<DataTable columns={columns} data={inspections} />
</div>
)
Expand Down

0 comments on commit 244072f

Please sign in to comment.