88 faSquareXmark ,
99} from "@fortawesome/free-solid-svg-icons" ;
1010import EditGrantDeleteItem from "./EditGrantDeleteItem" ;
11+ import FieldLabel from "../../../../components/FieldLabel" ;
1112
1213type EditGrantProps = {
1314 form : GrantFormState ;
@@ -18,9 +19,9 @@ export default function EditGrantInfo({ form, dispatch }: EditGrantProps) {
1819 return (
1920 < div className = "w-full" >
2021 < div className = "mb-6" >
21- < label className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
22+ < FieldLabel className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
2223 Description
23- </ label >
24+ </ FieldLabel >
2425 < textarea
2526 className = "h-32 block w-full text-gray-700 border bg-white border-grey-300 rounded placeholder:text-gray-700 p-2"
2627 placeholder = "Enter grant description..."
@@ -39,9 +40,9 @@ export default function EditGrantInfo({ form, dispatch }: EditGrantProps) {
3940 < div className = "flex flex-col w-full gap-6 items-start text-left col-span-1" >
4041 { /* Amount */ }
4142 < div className = "w-3/4" >
42- < label className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
43+ < FieldLabel isRequired className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
4344 Amount ($)
44- </ label >
45+ </ FieldLabel >
4546 < input
4647 type = "number"
4748 min = { 0 }
@@ -59,9 +60,9 @@ export default function EditGrantInfo({ form, dispatch }: EditGrantProps) {
5960
6061 { /* BCAN Eligible */ }
6162 < div className = "w-fit" >
62- < label className = "flex text-gray-700 sm:text-sm lg:text-base mb-1 whitespace-nowrap" >
63+ < FieldLabel isRequired className = "flex text-gray-700 sm:text-sm lg:text-base mb-1 whitespace-nowrap" >
6364 BCAN Eligible?
64- </ label >
65+ </ FieldLabel >
6566 < div className = "flex flex-col gap-1" >
6667 < Button
6768 logo = { faCheckSquare }
@@ -97,9 +98,9 @@ export default function EditGrantInfo({ form, dispatch }: EditGrantProps) {
9798 < div className = "flex flex-col w-full gap-6 items-start text-left col-span-1" >
9899 { /* Due Date */ }
99100 < div className = "" >
100- < label className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
101+ < FieldLabel className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
101102 Due Date
102- </ label >
103+ </ FieldLabel >
103104 < input
104105 type = "date"
105106 className = "appearance-none block w-full h-[2.25rem] text-gray-700 placeholder:text-gray-700 border border-grey-300 rounded-md py-2 px-4"
@@ -115,9 +116,9 @@ export default function EditGrantInfo({ form, dispatch }: EditGrantProps) {
115116 </ div >
116117 { /* Application Date */ }
117118 < div className = "" >
118- < label className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
119+ < FieldLabel className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
119120 Application Date
120- </ label >
121+ </ FieldLabel >
121122 < input
122123 type = "date"
123124 className = "appearance-none block w-full h-[2.25rem] text-gray-700 placeholder:text-gray-700 border border-grey-300 rounded-md py-2 px-4"
@@ -136,9 +137,9 @@ export default function EditGrantInfo({ form, dispatch }: EditGrantProps) {
136137 < div className = "flex flex-col w-full gap-6 items-start text-left col-span-1" >
137138 { /* Grant Start Date */ }
138139 < div >
139- < label className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
140+ < FieldLabel className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
140141 Grant Start Date
141- </ label >
142+ </ FieldLabel >
142143 < input
143144 type = "date"
144145 className = "appearance-none block w-full h-[2.25rem] text-gray-700 placeholder:text-gray-700 border border-grey-300 rounded-md py-2 px-4"
@@ -155,9 +156,9 @@ export default function EditGrantInfo({ form, dispatch }: EditGrantProps) {
155156
156157 { /* Report Deadlines */ }
157158 < div className = "" >
158- < label className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
159+ < FieldLabel className = "flex text-gray-700 sm:text-sm lg:text-base mb-1" >
159160 Report Deadlines
160- </ label >
161+ </ FieldLabel >
161162 < div className = "flex flex-col gap-2" >
162163 < div className = "ml-2 flex flex-col gap-2" >
163164 { form . reportDates . map ( ( date , index ) => (
@@ -200,9 +201,9 @@ export default function EditGrantInfo({ form, dispatch }: EditGrantProps) {
200201 < div className = "flex flex-col w-full gap-6 items-start text-left col-span-1" >
201202 { /* Timeline */ }
202203 < div className = "" >
203- < label className = "flex text-gray-700 sm:text-sm lg:text-base mb-1 " >
204+ < FieldLabel isRequired className = "flex text-gray-700 sm:text-sm lg:text-base mb-1 " >
204205 Timeline (years)
205- </ label >
206+ </ FieldLabel >
206207 < input
207208 type = "number"
208209 min = "0"
@@ -219,9 +220,9 @@ export default function EditGrantInfo({ form, dispatch }: EditGrantProps) {
219220 </ div >
220221 { /* Estimated Completion Time */ }
221222 < div className = "" >
222- < label className = "flex text-gray-700 sm:text-sm lg:text-base mb-1 whitespace-nowrap" >
223+ < FieldLabel className = "flex text-gray-700 sm:text-sm lg:text-base mb-1 whitespace-nowrap" >
223224 Estimated Completion Time (hours)
224- </ label >
225+ </ FieldLabel >
225226 < input
226227 type = "number"
227228 min = "0"
0 commit comments