Skip to content

Commit

Permalink
Merge pull request #111 from Unboxed-Software/master
Browse files Browse the repository at this point in the history
v4.4.1
  • Loading branch information
jamesrp13 authored Sep 27, 2023
2 parents 7e418a5 + fe1ac2e commit 7f27e3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v4.4.1 (Wed Sep 27 2023)

#### 🚀 Enhancement

- Remove Universal option from prompts (it remains available in flags)

# v4.4.0 (Wed Sep 27 2023)

#### 🚀 Enhancement
Expand Down
19 changes: 3 additions & 16 deletions core/create-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export async function createApp(config: CreateMagicAppConfig) {
message: 'Select a configuration to start with:',
choices: [
{ name: 'quickstart', message: 'Quickstart (Nextjs, Polygon Testnet, Email OTP)' },
{ name: 'custom', message: 'Custom Setup (Choose product, network, etc.)' },
{ name: 'custom', message: 'Custom Setup (Choose network, login methods, etc.)' },
],
}).run();

Expand Down Expand Up @@ -166,22 +166,9 @@ export async function createApp(config: CreateMagicAppConfig) {
}

if (!product) {
product = await new Select({
name: 'product',
message: 'Choose your wallet type',
choices: [
{ name: 'dedicated', message: 'Dedicated' },
{ name: 'universal', message: 'Universal' },
],
}).run();
product = 'dedicated';

if (product === 'universal') {
if (chain === 'flow') {
config.template = 'nextjs-flow-universal-wallet';
} else {
config.template = 'nextjs-universal-wallet';
}
} else if (chain === 'flow') {
if (chain === 'flow') {
config.template = 'nextjs-flow-dedicated-wallet';
} else {
config.template = 'nextjs-dedicated-wallet';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "make-magic",
"version": "4.4.0",
"version": "4.4.1",
"description": "A tool for quickly scaffolding an app with Magic authentication baked-in!",
"repository": "magiclabs/create-magic-app",
"license": "MIT",
Expand Down

0 comments on commit 7f27e3a

Please sign in to comment.