Skip to content

Commit

Permalink
Created FlexAddButtonDiv.jsx component
Browse files Browse the repository at this point in the history
  • Loading branch information
cp6 committed Oct 9, 2023
1 parent 994f9ec commit f9da8cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/js/Components/FlexAddButtonDiv.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from "react";
import AddButton from "@/Components/AddButton";

export default function FlexAddButtonDiv({href, resource}) {
return (
<div className="flex flex-wrap gap-2 mb-4">
<AddButton href={href}>Add {resource}</AddButton>
</div>
);
}

0 comments on commit f9da8cb

Please sign in to comment.