Skip to content

Commit 220e206

Browse files
Merge pull request #1136 from emarc99/fix-1134
Fix: Subscription page button
2 parents fa96b57 + 8be5419 commit 220e206

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ Enabling users to:
88
- Manage and monitor their starknet identities and domains
99
- Make calls to the starknet id serverless API
1010

11-
## Prerequisite 🌴
12-
You should install a browser extension for any of these wallets below:
11+
## Prerequisite 🌴
12+
13+
You should install a browser extension for any of these wallets below:
14+
1315
- ArgentX (Recommended)
1416
- Metamask
1517
- Bravoos
1618
- OKX
1719
- Bitget
18-
- Keplr
20+
- Keplr
1921

2022
![](/public/visuals/wallets.webp)
2123

@@ -24,7 +26,7 @@ To learn how to add browser extensions, go [here](https://support.google.com/chr
2426
Once wallet extension of your choice is installed and properly setup, switch to sepolia testnet for development purposes.
2527
Request for testnet STRK tokens [here](https://sepolia.app.starknet.id) to pay for gas (transaction fees)
2628

27-
## How to use 🌴
29+
## How to use 🌴
2830

2931
First step, clone this repo.
3032

@@ -48,16 +50,15 @@ npm install --force
4850
yarn install --force
4951
```
5052

51-
## Setting up Development Server for testnet 🌴
53+
## Setting up Development Server for testnet 🌴
5254

5355
- In the root of your project, create a `.env.local` file.
5456
- Copy all the content in `.env.test` into your newly created file.
5557
- Go to [here](https://sepolia.app.starknet.id/) and mint your domains.
5658

5759
**NB**: longer domain names cost less.
5860

59-
60-
## Setting up Development Server for mainnet 🌴
61+
## Setting up Development Server for mainnet 🌴
6162

6263
- In the root of your project, create a `.env.local` file.
6364
- Copy all the content in `.env.example` into your newly created file
@@ -76,7 +77,6 @@ Lastly, connect your wallet (e.g ArgentX, ensure its in testnet mode if you want
7677

7778
**NB:** You need to have mainnet token balance to pay for gas fees if you are using mainnet.
7879

79-
8080
## License 🌴
8181

8282
Currently there is no license, this means you cannot modify or redistribute this code without explicit permission from the copyright holder.

hooks/useNeedAllowances.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ export default function useNeedsAllowances(
5151
Hardcoded: hash.getSelectorFromName("allowance"),
5252
}),
5353
calldata: [
54-
new CairoCustomEnum({ Hardcoded: address }), // owner
54+
new CairoCustomEnum({ Hardcoded: address ?? "0x0" }), // owner
5555
new CairoCustomEnum({
56-
Hardcoded: AutoRenewalContracts[currencyNames[index]],
56+
Hardcoded: AutoRenewalContracts[currencyNames[index]] ?? "0x0",
5757
}), // spender
5858
],
5959
});

pages/subscription.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import type { NextPage } from "next";
33
import homeStyles from "../styles/Home.module.css";
44
import styles from "../styles/search.module.css";
55
import AutoRenewal from "../components/domains/autorenewal";
6+
import registerV2Styles from "../styles/components/registerV2.module.css";
67

78
const AutoRenewalPage: NextPage = () => {
89
return (
9-
<div className={homeStyles.screen}>
10+
<div className={`${homeStyles.screen} ${registerV2Styles.subscriptionScreen}`}>
1011
<div className={styles.container}>
1112
<AutoRenewal />
1213
</div>

styles/components/registerV2.module.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
max-width: 100%;
55
background-color: white;
66
justify-content: space-between;
7-
margin-bottom: 100px;
87
border-radius: 1rem;
98
box-shadow: 0px 2px 30px 0px rgba(0, 0, 0, 0.06);
109
margin-bottom: 3rem;
1110
overflow: hidden;
1211
position: relative;
1312
z-index: 0;
13+
margin-top: 1rem;
1414
}
1515

1616
.card {
@@ -25,6 +25,11 @@
2525
background-color: #fff;
2626
}
2727

28+
.subscriptionScreen {
29+
height: auto;
30+
min-height: 88vh;
31+
}
32+
2833
.price {
2934
color: rgb(31 41 55);
3035
font-size: 1.25rem /* 20px */;

styles/search.module.css

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
.container {
1616
flex-direction: column;
1717
min-height: auto;
18+
padding-bottom: 10px;
1819
}
1920
}
2021

0 commit comments

Comments
 (0)