Skip to content

Commit

Permalink
Increased char limits for text inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
calvadev committed May 2, 2024
1 parent 4dacf53 commit 45f68ed
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions components/product-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ export default function NewForm({
rules={{
required: "A description is required.",
maxLength: {
value: 300,
message: "This input exceed maxLength of 300.",
value: 500,
message: "This input exceed maxLength of 500.",
},
}}
render={({
Expand Down
4 changes: 2 additions & 2 deletions components/wallet/mint-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ const MintButton = () => {
rules={{
required: "A whole number is required.",
maxLength: {
value: 300,
message: "This input exceed maxLength of 300.",
value: 500,
message: "This input exceed maxLength of 500.",
},
validate: (value) =>
/^\d+$/.test(value) || "Please enter a whole number.",
Expand Down
4 changes: 2 additions & 2 deletions components/wallet/send-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ const SendButton = () => {
rules={{
required: "A whole number is required.",
maxLength: {
value: 300,
message: "This input exceed maxLength of 300.",
value: 500,
message: "This input exceed maxLength of 500.",
},
validate: (value) =>
/^\d+$/.test(value) || "Please enter a whole number.",
Expand Down
8 changes: 4 additions & 4 deletions pages/settings/preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ const PreferencesPage = () => {
rules={{
required: "A relay URL is required.",
maxLength: {
value: 300,
message: "This input exceed maxLength of 300.",
value: 500,
message: "This input exceed maxLength of 500.",
},
validate: (value) =>
/^(wss:\/\/|ws:\/\/)/.test(value) ||
Expand Down Expand Up @@ -352,8 +352,8 @@ const PreferencesPage = () => {
rules={{
required: "A mint URL is required.",
maxLength: {
value: 300,
message: "This input exceed maxLength of 300.",
value: 500,
message: "This input exceed maxLength of 500.",
},
validate: (value) =>
/^(https:\/\/|http:\/\/)/.test(value) ||
Expand Down
4 changes: 2 additions & 2 deletions pages/settings/user-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ const UserProfilePage = () => {
control={control}
rules={{
maxLength: {
value: 300,
message: "This input exceed maxLength of 300.",
value: 500,
message: "This input exceed maxLength of 500.",
},
}}
render={({
Expand Down

0 comments on commit 45f68ed

Please sign in to comment.