@@ -505,8 +505,7 @@ export const FundingStructure: FC<FundingStructureProps> = ({
505
505
if ( structureType === 'tiered' && currentStructure . tiers ) {
506
506
const totalEquity = currentStructure . tiers . reduce (
507
507
( sum , tier ) =>
508
- sum +
509
- ( Number . parseFloat ( tier . equityPercentage ) || 0 ) ,
508
+ sum + ( Number . parseFloat ( tier . equityPercentage ) || 0 ) ,
510
509
0
511
510
) ;
512
511
@@ -1176,9 +1175,7 @@ export const FundingStructure: FC<FundingStructureProps> = ({
1176
1175
className = "text-[#ff7f29] hover:text-[#e06b20]"
1177
1176
>
1178
1177
< FiX
1179
- size = {
1180
- 16
1181
- }
1178
+ size = { 16 }
1182
1179
/>
1183
1180
</ button >
1184
1181
) }
@@ -1198,14 +1195,11 @@ export const FundingStructure: FC<FundingStructureProps> = ({
1198
1195
value = {
1199
1196
tier . amount
1200
1197
}
1201
- onChange = { (
1202
- e
1203
- ) =>
1198
+ onChange = { ( e ) =>
1204
1199
handleUpdateTier (
1205
1200
tier . id ,
1206
1201
'amount' ,
1207
- e
1208
- . target
1202
+ e . target
1209
1203
. value
1210
1204
)
1211
1205
}
@@ -1223,10 +1217,9 @@ export const FundingStructure: FC<FundingStructureProps> = ({
1223
1217
validationErrors
1224
1218
. tiers ?. [
1225
1219
tier . id
1226
- ]
1227
- ?. amount
1228
- ? 'border-red-500'
1229
- : 'border-gray-300'
1220
+ ] ?. amount
1221
+ ? 'border-red-500'
1222
+ : 'border-gray-300'
1230
1223
} `}
1231
1224
placeholder = "e.g. 1000"
1232
1225
/>
@@ -1237,8 +1230,7 @@ export const FundingStructure: FC<FundingStructureProps> = ({
1237
1230
validationErrors
1238
1231
. tiers ?. [
1239
1232
tier . id
1240
- ]
1241
- ?. amount && (
1233
+ ] ?. amount && (
1242
1234
< p
1243
1235
className = {
1244
1236
errorTextStyle
@@ -1249,7 +1241,8 @@ export const FundingStructure: FC<FundingStructureProps> = ({
1249
1241
. tiers [
1250
1242
tier
1251
1243
. id
1252
- ] . amount
1244
+ ]
1245
+ . amount
1253
1246
}
1254
1247
</ p >
1255
1248
) }
@@ -1272,23 +1265,19 @@ export const FundingStructure: FC<FundingStructureProps> = ({
1272
1265
htmlFor = { `equity-tier-${ tier . id } ` }
1273
1266
className = "block text-sm font-medium text-gray-700 mb-1"
1274
1267
>
1275
- Total Equity
1276
- (%)
1268
+ Total Equity (%)
1277
1269
</ label >
1278
1270
< input
1279
1271
id = { `equity-tier-${ tier . id } ` }
1280
1272
type = "number"
1281
1273
value = {
1282
1274
tier . equityPercentage
1283
1275
}
1284
- onChange = { (
1285
- e
1286
- ) =>
1276
+ onChange = { ( e ) =>
1287
1277
handleUpdateTier (
1288
1278
tier . id ,
1289
1279
'equityPercentage' ,
1290
- e
1291
- . target
1280
+ e . target
1292
1281
. value
1293
1282
)
1294
1283
}
@@ -1308,8 +1297,8 @@ export const FundingStructure: FC<FundingStructureProps> = ({
1308
1297
. tiers ?. [
1309
1298
tier
1310
1299
. id
1311
- ]
1312
- ?. equityPercentage
1300
+ ]
1301
+ ?. equityPercentage
1313
1302
) ||
1314
1303
(
1315
1304
validationErrors . equity &&
@@ -1341,7 +1330,8 @@ export const FundingStructure: FC<FundingStructureProps> = ({
1341
1330
. tiers [
1342
1331
tier
1343
1332
. id
1344
- ] . equityPercentage
1333
+ ]
1334
+ . equityPercentage
1345
1335
}
1346
1336
</ p >
1347
1337
) }
@@ -1370,7 +1360,8 @@ export const FundingStructure: FC<FundingStructureProps> = ({
1370
1360
}
1371
1361
>
1372
1362
{ currentStructure . tiers &&
1373
- currentStructure . tiers . length >= 5
1363
+ currentStructure . tiers . length >=
1364
+ 5
1374
1365
? '+ Add Tier (Max 5)'
1375
1366
: '+ Add Tier' }
1376
1367
</ Button >
@@ -1982,8 +1973,7 @@ export const FundingStructure: FC<FundingStructureProps> = ({
1982
1973
handleUpdateTier (
1983
1974
tier . id ,
1984
1975
'amount' ,
1985
- e
1986
- . target
1976
+ e . target
1987
1977
. value
1988
1978
)
1989
1979
}
@@ -2025,7 +2015,7 @@ export const FundingStructure: FC<FundingStructureProps> = ({
2025
2015
. tiers [
2026
2016
tier
2027
2017
. id
2028
- ] . amount
2018
+ ] . amount
2029
2019
}
2030
2020
</ p >
2031
2021
) }
@@ -2048,11 +2038,10 @@ export const FundingStructure: FC<FundingStructureProps> = ({
2048
2038
handleUpdateTier (
2049
2039
tier . id ,
2050
2040
'equityPercentage' ,
2051
- e
2052
- . target
2041
+ e . target
2053
2042
. value
2054
- )
2055
- }
2043
+ )
2044
+ }
2056
2045
onBlur = { ( ) =>
2057
2046
markTierFieldAsTouched (
2058
2047
tier . id ,
@@ -2069,17 +2058,17 @@ export const FundingStructure: FC<FundingStructureProps> = ({
2069
2058
. tiers ?. [
2070
2059
tier
2071
2060
. id
2072
- ]
2073
- ?. equityPercentage
2074
- ) ||
2075
- (
2076
- validationErrors . equity &&
2077
- shouldShowError (
2078
- 'equity'
2079
- )
2080
- )
2081
- ? 'border-red-500'
2082
- : 'border-gray-300'
2061
+ ]
2062
+ ?. equityPercentage
2063
+ ) ||
2064
+ (
2065
+ validationErrors . equity &&
2066
+ shouldShowError (
2067
+ 'equity'
2068
+ )
2069
+ )
2070
+ ? 'border-red-500'
2071
+ : 'border-gray-300'
2083
2072
} `}
2084
2073
placeholder = "e.g. 10"
2085
2074
/>
@@ -2102,7 +2091,8 @@ export const FundingStructure: FC<FundingStructureProps> = ({
2102
2091
. tiers [
2103
2092
tier
2104
2093
. id
2105
- ] . equityPercentage
2094
+ ]
2095
+ . equityPercentage
2106
2096
}
2107
2097
</ p >
2108
2098
) }
0 commit comments