Skip to content

Commit e125e74

Browse files
committed
Dashboard: Temporarily remove gas sponsorship option in token creation (#7631)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on temporarily disabling the gasless feature in two components: `launch-token.tsx` and `launch-nft.tsx`. The condition for enabling gasless functionality has been commented out and replaced with a static `false` value. ### Detailed summary - In `launch-token.tsx`: - `canEnableGasless` is set to `false` with a comment about enabling it later. - `showGaslessSection` is set to `false`. - In `launch-nft.tsx`: - `canEnableGasless` is set to `false` with a comment about enabling it later. - `showGaslessSection` is set to `false`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * The gasless transaction feature and related UI have been temporarily disabled for both NFT and token launch flows. * **Chores** * Updated internal logic to prevent access to the gasless sponsorship section until further notice. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 05da842 commit e125e74

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/launch/launch-nft.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ export function LaunchNFT(props: {
155155
return shouldDeployERC721 ? "erc721" : "erc1155";
156156
}, [formValues.nfts]);
157157

158-
const canEnableGasless =
159-
props.teamPlan !== "free" && activeWallet?.id === "inApp";
158+
// TODO: enable later when bundler changes are done
159+
const canEnableGasless = false; // props.teamPlan !== "free" && activeWallet?.id === "inApp";
160160
const [isGasless, setIsGasless] = useState(canEnableGasless);
161-
const showGaslessSection = activeWallet?.id === "inApp";
161+
const showGaslessSection = false; // activeWallet?.id === "inApp";
162162

163163
const contractLink = contractAddressRef.current
164164
? `/team/${props.teamSlug}/${props.projectSlug}/contract/${formValues.collectionInfo.chain}/${contractAddressRef.current}`

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/token/launch/launch-token.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ export function LaunchTokenStatus(props: {
6464
const activeWallet = useActiveWallet();
6565
const walletRequiresApproval = activeWallet?.id !== "inApp";
6666

67-
const canEnableGasless =
68-
props.teamPlan !== "free" && activeWallet?.id === "inApp";
67+
// TODO: enable later when bundler changes are done
68+
const canEnableGasless = false; //props.teamPlan !== "free" && activeWallet?.id === "inApp";
6969
const [isGasless, setIsGasless] = useState(canEnableGasless);
70-
const showGaslessSection = activeWallet?.id === "inApp";
70+
const showGaslessSection = false; // activeWallet?.id === "inApp";
7171
const { idToChain } = useAllChainsData();
7272
const chainMetadata = idToChain.get(Number(formValues.chain));
7373

0 commit comments

Comments
 (0)