Skip to content

Commit f8af69a

Browse files
committed
fix lucide error
1 parent fe98c16 commit f8af69a

File tree

2 files changed

+46
-46
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/assets

2 files changed

+46
-46
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/assets/create-nft/page.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
ChevronDownIcon,
3131
ChevronUpIcon,
3232
ImageIcon,
33-
Loader2,
33+
Loader,
3434
} from "lucide-react";
3535
import { useState } from "react";
3636
import { useForm } from "react-hook-form";
@@ -101,7 +101,7 @@ const StepIndicator = ({
101101
? "bg-primary text-primary-foreground"
102102
: currentStep > step
103103
? "bg-primary/20 text-primary"
104-
: "bg-muted text-muted-foreground",
104+
: "bg-muted text-muted-foreground"
105105
)}
106106
>
107107
{currentStep > step ? (
@@ -119,7 +119,7 @@ export default function CreateNFTPage() {
119119
const [collectionInfo, setCollectionInfo] =
120120
useState<CollectionInfoValues | null>(null);
121121
const [mintSettings, setMintSettings] = useState<MintSettingsValues | null>(
122-
null,
122+
null
123123
);
124124
const [showRoyaltySettings, setShowRoyaltySettings] = useState(false);
125125
const [isDeploying, setIsDeploying] = useState(false);
@@ -304,7 +304,7 @@ export default function CreateNFTPage() {
304304
onSwitchChain={(chain) => {
305305
collectionInfoForm.setValue(
306306
"chain",
307-
chain.chainId?.toString() || "",
307+
chain.chainId?.toString() || ""
308308
);
309309
}}
310310
/>
@@ -456,7 +456,7 @@ export default function CreateNFTPage() {
456456
onChange={() =>
457457
mintSettingsForm.setValue(
458458
"collectionType",
459-
"existing",
459+
"existing"
460460
)
461461
}
462462
/>
@@ -482,7 +482,7 @@ export default function CreateNFTPage() {
482482
onChange={() =>
483483
mintSettingsForm.setValue(
484484
"collectionType",
485-
"project",
485+
"project"
486486
)
487487
}
488488
/>
@@ -566,15 +566,15 @@ export default function CreateNFTPage() {
566566
>
567567
<BasisPointsInput
568568
value={Number(
569-
mintSettingsForm.watch("royaltyPercentage"),
569+
mintSettingsForm.watch("royaltyPercentage")
570570
)}
571571
onChange={(value) =>
572572
mintSettingsForm.setValue(
573573
"royaltyPercentage",
574574
value.toString(),
575575
{
576576
shouldTouch: true,
577-
},
577+
}
578578
)
579579
}
580580
/>
@@ -718,7 +718,7 @@ export default function CreateNFTPage() {
718718
<p className="text-muted-foreground text-sm">Platform Fee:</p>
719719
<p>
720720
{(Number(mintSettings?.platformFeeBps || 250) / 100).toFixed(
721-
2,
721+
2
722722
)}
723723
%
724724
</p>
@@ -737,7 +737,7 @@ export default function CreateNFTPage() {
737737
</p>
738738
<p>
739739
{(Number(mintSettings?.royaltyPercentage || 0) / 100).toFixed(
740-
2,
740+
2
741741
)}
742742
%
743743
</p>
@@ -766,7 +766,7 @@ export default function CreateNFTPage() {
766766
>
767767
{isDeploying ? (
768768
<>
769-
<Loader2 className="mr-2 h-4 w-4 animate-spin" /> Deploying
769+
<Loader className="mr-2 h-4 w-4 animate-spin" /> Deploying
770770
Collection...
771771
</>
772772
) : (
@@ -871,7 +871,7 @@ export default function CreateNFTPage() {
871871
const imageFile = await fetch(
872872
typeof collectionInfo.image === "string"
873873
? collectionInfo.image
874-
: URL.createObjectURL(collectionInfo.image as Blob),
874+
: URL.createObjectURL(collectionInfo.image as Blob)
875875
).then((r) => r.blob());
876876

877877
// Convert Blob to File with a name
@@ -962,13 +962,13 @@ export default function CreateNFTPage() {
962962
} catch (error) {
963963
console.error("Error setting claim conditions:", error);
964964
toast.error(
965-
`Failed to set claim conditions: ${error instanceof Error ? error.message : "Unknown error"}`,
965+
`Failed to set claim conditions: ${error instanceof Error ? error.message : "Unknown error"}`
966966
);
967967
}
968968
} catch (error) {
969969
console.error("Error deploying NFT collection:", error);
970970
toast.error(
971-
`Failed to deploy NFT collection: ${error instanceof Error ? error.message : "Unknown error"}`,
971+
`Failed to deploy NFT collection: ${error instanceof Error ? error.message : "Unknown error"}`
972972
);
973973
} finally {
974974
setIsDeploying(false);

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/assets/create-token/page.tsx

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const StepIndicator = ({
126126
? "bg-primary text-primary-foreground"
127127
: currentStep > step
128128
? "bg-primary/20 text-primary"
129-
: "bg-muted text-muted-foreground",
129+
: "bg-muted text-muted-foreground"
130130
)}
131131
>
132132
{currentStep > step ? (
@@ -214,7 +214,7 @@ export const AirdropUpload: React.FC<AirdropUploadProps> = ({
214214
address: o.resolvedAddress || o.address,
215215
quantity: o.quantity,
216216
isValid: o.isValid,
217-
})),
217+
}))
218218
);
219219
onClose();
220220
};
@@ -287,7 +287,7 @@ export const AirdropUpload: React.FC<AirdropUploadProps> = ({
287287
<div
288288
className={cn(
289289
"flex h-full cursor-pointer items-center justify-center rounded-md border border-border hover:border-primary",
290-
noCsv ? "bg-red-200" : "bg-background",
290+
noCsv ? "bg-red-200" : "bg-background"
291291
)}
292292
{...getRootProps()}
293293
>
@@ -548,7 +548,7 @@ export default function CreateTokenPage() {
548548
if (!tokenInfo || !advancedOptions || !activeAccount || !thirdwebClient) {
549549
toast.error("Missing required information. Please check your inputs.");
550550
setErrorMessage(
551-
"Missing required information. Please check all form fields and try again.",
551+
"Missing required information. Please check all form fields and try again."
552552
);
553553
setErrorStep("preparation");
554554
return;
@@ -645,7 +645,7 @@ export default function CreateTokenPage() {
645645
const imageFile = await fetch(
646646
typeof tokenInfo.image === "string"
647647
? tokenInfo.image
648-
: URL.createObjectURL(tokenInfo.image as Blob),
648+
: URL.createObjectURL(tokenInfo.image as Blob)
649649
).then((r) => r.blob());
650650

651651
// Convert Blob to File with a name
@@ -678,7 +678,7 @@ export default function CreateTokenPage() {
678678

679679
// Calculate claim conditions parameters
680680
const totalSupplyBigInt = BigInt(
681-
Math.floor(Number.parseFloat(totalSupply) * 10 ** decimals),
681+
Math.floor(Number.parseFloat(totalSupply) * 10 ** decimals)
682682
);
683683
let saleSupply = 0n;
684684
let salePrice = 0;
@@ -689,8 +689,8 @@ export default function CreateTokenPage() {
689689
((Number.parseFloat(totalSupply) *
690690
Number.parseFloat(advancedOptions.saleSupply)) /
691691
100) *
692-
10 ** decimals,
693-
),
692+
10 ** decimals
693+
)
694694
);
695695
salePrice = Number.parseFloat(advancedOptions.salePrice);
696696
}
@@ -705,7 +705,7 @@ export default function CreateTokenPage() {
705705
platform_fee_recipient:
706706
advancedOptions.platformFeeRecipient || activeAccount.address,
707707
platform_fee_basis_points: Number.parseInt(
708-
advancedOptions.platformFeeBps || "250",
708+
advancedOptions.platformFeeBps || "250"
709709
),
710710
};
711711

@@ -820,18 +820,18 @@ export default function CreateTokenPage() {
820820
try {
821821
setDeploymentStatus("Minting Tokens to Owner...");
822822
console.log(
823-
`Minting ${mintPercentage}% of tokens to owner's wallet...`,
823+
`Minting ${mintPercentage}% of tokens to owner's wallet...`
824824
);
825825

826826
// Calculate total tokens to mint based on percentage and total supply
827827
const mintTokenAmount = BigInt(
828828
Math.floor(
829-
(Number.parseFloat(totalSupply) * mintPercentage) / 100,
830-
),
829+
(Number.parseFloat(totalSupply) * mintPercentage) / 100
830+
)
831831
);
832832

833833
console.log(
834-
`Minting ${mintTokenAmount} tokens to ${activeAccount.address}`,
834+
`Minting ${mintTokenAmount} tokens to ${activeAccount.address}`
835835
);
836836

837837
const claimTransaction = claimTo({
@@ -856,7 +856,7 @@ export default function CreateTokenPage() {
856856
transactionHash: mintTx.transactionHash,
857857
});
858858
console.log(
859-
`Successfully minted ${mintTokenAmount} tokens to owner's wallet`,
859+
`Successfully minted ${mintTokenAmount} tokens to owner's wallet`
860860
);
861861
} catch (confirmError) {
862862
const errorMsg = `Failed to confirm token mint: ${confirmError instanceof Error ? confirmError.message : "Unknown error"}`;
@@ -876,10 +876,10 @@ export default function CreateTokenPage() {
876876
if (airdropSupplyPercentage > 0 && airdropAddresses.length > 0) {
877877
try {
878878
setDeploymentStatus(
879-
`Airdropping to ${airdropAddresses.length} Addresses...`,
879+
`Airdropping to ${airdropAddresses.length} Addresses...`
880880
);
881881
console.log(
882-
`Airdropping to ${airdropAddresses.length} addresses...`,
882+
`Airdropping to ${airdropAddresses.length} addresses...`
883883
);
884884

885885
// Calculate the total token amount for airdrop based on percentage
@@ -892,7 +892,7 @@ export default function CreateTokenPage() {
892892
const totalQuantities = airdropAddresses.reduce(
893893
(sum, address) =>
894894
sum + Number.parseFloat(address.quantity || "1"),
895-
0,
895+
0
896896
);
897897

898898
// Then, calculate each recipient's token amount based on their proportion
@@ -901,7 +901,7 @@ export default function CreateTokenPage() {
901901
Number.parseFloat(address.quantity || "1") /
902902
totalQuantities;
903903
const amount = BigInt(
904-
Math.floor(totalAirdropTokens * proportion),
904+
Math.floor(totalAirdropTokens * proportion)
905905
);
906906
return {
907907
to: address.address,
@@ -931,10 +931,10 @@ export default function CreateTokenPage() {
931931
transactionHash: airdropTx.transactionHash,
932932
});
933933
console.log(
934-
`Successfully airdropped tokens to ${airdropAddresses.length} addresses`,
934+
`Successfully airdropped tokens to ${airdropAddresses.length} addresses`
935935
);
936936
toast.success(
937-
`Successfully airdropped tokens to ${airdropAddresses.length} addresses`,
937+
`Successfully airdropped tokens to ${airdropAddresses.length} addresses`
938938
);
939939
} catch (confirmError) {
940940
const errorMsg = `Failed to confirm airdrop: ${confirmError instanceof Error ? confirmError.message : "Unknown error"}`;
@@ -1115,7 +1115,7 @@ export default function CreateTokenPage() {
11151115
onSwitchChain={(chain) => {
11161116
tokenInfoForm.setValue(
11171117
"chain",
1118-
chain.chainId?.toString() || "",
1118+
chain.chainId?.toString() || ""
11191119
);
11201120
}}
11211121
/>
@@ -1190,7 +1190,7 @@ export default function CreateTokenPage() {
11901190
if (
11911191
checked &&
11921192
Number.parseFloat(
1193-
advancedOptionsForm.watch("saleSupply"),
1193+
advancedOptionsForm.watch("saleSupply")
11941194
) === 0
11951195
) {
11961196
advancedOptionsForm.setValue("saleSupply", "10");
@@ -1228,7 +1228,7 @@ export default function CreateTokenPage() {
12281228
onChange={(e) => {
12291229
advancedOptionsForm.setValue(
12301230
"saleSupply",
1231-
e.target.value,
1231+
e.target.value
12321232
);
12331233
setLastUpdatedField("saleSupply");
12341234
}}
@@ -1271,7 +1271,7 @@ export default function CreateTokenPage() {
12711271
onChange={(e) => {
12721272
advancedOptionsForm.setValue(
12731273
"ownerSupply",
1274-
e.target.value,
1274+
e.target.value
12751275
);
12761276
setLastUpdatedField("ownerSupply");
12771277
}}
@@ -1294,7 +1294,7 @@ export default function CreateTokenPage() {
12941294
onChange={(e) => {
12951295
advancedOptionsForm.setValue(
12961296
"airdropSupply",
1297-
e.target.value,
1297+
e.target.value
12981298
);
12991299
setLastUpdatedField("airdropSupply");
13001300
}}
@@ -1476,7 +1476,7 @@ export default function CreateTokenPage() {
14761476
<SolidityInput
14771477
solidityType="address"
14781478
{...advancedOptionsForm.register(
1479-
"primarySaleAddress",
1479+
"primarySaleAddress"
14801480
)}
14811481
/>
14821482
</FormFieldSetup>
@@ -1502,7 +1502,7 @@ export default function CreateTokenPage() {
15021502
<SolidityInput
15031503
solidityType="address"
15041504
{...advancedOptionsForm.register(
1505-
"platformFeeRecipient",
1505+
"platformFeeRecipient"
15061506
)}
15071507
/>
15081508
</FormFieldSetup>
@@ -1518,15 +1518,15 @@ export default function CreateTokenPage() {
15181518
>
15191519
<BasisPointsInput
15201520
value={Number(
1521-
advancedOptionsForm.watch("platformFeeBps"),
1521+
advancedOptionsForm.watch("platformFeeBps")
15221522
)}
15231523
onChange={(value) =>
15241524
advancedOptionsForm.setValue(
15251525
"platformFeeBps",
15261526
value.toString(),
15271527
{
15281528
shouldTouch: true,
1529-
},
1529+
}
15301530
)
15311531
}
15321532
/>
@@ -1565,15 +1565,15 @@ export default function CreateTokenPage() {
15651565
>
15661566
<BasisPointsInput
15671567
value={Number(
1568-
advancedOptionsForm.watch("royaltyBps"),
1568+
advancedOptionsForm.watch("royaltyBps")
15691569
)}
15701570
onChange={(value) =>
15711571
advancedOptionsForm.setValue(
15721572
"royaltyBps",
15731573
value.toString(),
15741574
{
15751575
shouldTouch: true,
1576-
},
1576+
}
15771577
)
15781578
}
15791579
/>
@@ -1798,7 +1798,7 @@ export default function CreateTokenPage() {
17981798
type="button"
17991799
className={cn(
18001800
"bg-primary hover:bg-primary/90",
1801-
errorStep && "bg-red-500 hover:bg-red-600",
1801+
errorStep && "bg-red-500 hover:bg-red-600"
18021802
)}
18031803
onClick={deployToken}
18041804
disabled={isDeploying}

0 commit comments

Comments
 (0)