Skip to content

Commit cae0350

Browse files
committed
Merge branch 'release-1.0.87'
2 parents 011dbf5 + 5117d60 commit cae0350

File tree

5 files changed

+22
-34
lines changed

5 files changed

+22
-34
lines changed

client/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "foodoasis-client",
33
"description": "React Client for Food Oasis",
4-
"version": "1.0.86",
4+
"version": "1.0.87",
55
"author": "Hack for LA",
66
"license": "GPL-2.0",
77
"private": true,

client/src/components/Admin/OrganizationEdit.jsx

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ import MoreDetails from "./OrganizationEdit/MoreDetails";
3333
import Verification from "./OrganizationEdit/Verification";
3434
import Label from "./ui/Label";
3535
import Textarea from "./ui/Textarea";
36-
import {
37-
FACEBOOK_REGEX,
38-
INSTAGRAM_REGEX,
39-
LINKEDIN_REGEX,
40-
PINTEREST_REGEX,
41-
TWITTER_REGEX,
42-
} from "../../helpers/Constants";
36+
// import {
37+
// FACEBOOK_REGEX,
38+
// INSTAGRAM_REGEX,
39+
// LINKEDIN_REGEX,
40+
// PINTEREST_REGEX,
41+
// TWITTER_REGEX,
42+
// } from "../../helpers/Constants";
4343

4444
const HourSchema = Yup.object().shape({
4545
weekOfMonth: Yup.number().required("Interval is required"),
@@ -58,21 +58,11 @@ const validationSchema = Yup.object().shape({
5858
longitude: Yup.number().required("Longitude is required").min(-180).max(180),
5959
email: Yup.string().email("Invalid email address format"),
6060
hours: Yup.array().of(HourSchema),
61-
instagram: Yup.string()
62-
.matches(INSTAGRAM_REGEX, "Please enter a valid Instagram URL.")
63-
.nullable(),
64-
pinterest: Yup.string()
65-
.matches(PINTEREST_REGEX, "Please enter a valid Pinterest URL.")
66-
.nullable(),
67-
facebook: Yup.string()
68-
.matches(FACEBOOK_REGEX, "Please enter a valid Facebook URL.")
69-
.nullable(),
70-
linkedin: Yup.string()
71-
.matches(LINKEDIN_REGEX, "Please enter a valid LinkedIn URL.")
72-
.nullable(),
73-
twitter: Yup.string()
74-
.matches(TWITTER_REGEX, "Please enter a valid Twitter/X URL.")
75-
.nullable(),
61+
instagram: Yup.string().nullable(),
62+
pinterest: Yup.string().nullable(),
63+
facebook: Yup.string().nullable(),
64+
linkedin: Yup.string().nullable(),
65+
twitter: Yup.string().nullable(),
7666
selectedCategoryIds: Yup.array().min(
7767
1,
7868
"You must select at least one category"

client/src/components/Admin/OrganizationEdit/ContactDetails.jsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { TabPanel } from "components/Admin/ui/TabPanel";
33
import { TextField } from "@mui/material";
44
import Label from "../ui/Label";
55

6-
7-
86
export default function ContactDetails({
97
tabPage,
108
values,
@@ -21,7 +19,7 @@ export default function ContactDetails({
2119
<Label
2220
id="website"
2321
label="Website"
24-
tooltipTitle="The organization's web address"
22+
tooltipTitle="Enter the Full URL for the organization's web site, e.g., https://www.hackforla.org"
2523
/>
2624
<TextField
2725
id="website"
@@ -40,7 +38,7 @@ export default function ContactDetails({
4038
<Label
4139
id="instagram"
4240
label="Instagram"
43-
tooltipTitle="Enter Instagram url"
41+
tooltipTitle="Enter a full Instagram URL, e.g., https://www.instagram.com/hackforla"
4442
href={values.instagram}
4543
/>
4644
<TextField
@@ -60,7 +58,7 @@ export default function ContactDetails({
6058
<Label
6159
id="facebook"
6260
label="Facebook"
63-
tooltipTitle="Enter your Facebook username"
61+
tooltipTitle="Enter a full Facebook URL, e.g., https://www.facebook.com/hackforla"
6462
href={values.facebook}
6563
/>
6664
<TextField
@@ -80,7 +78,7 @@ export default function ContactDetails({
8078
<Label
8179
id="twitter-label"
8280
label="Twitter"
83-
tooltipTitle="Enter Twitter url"
81+
tooltipTitle="Enter a full Twitter URL, e.g., https://www.x.com/hackforla"
8482
href={values.twitter}
8583
/>
8684
<TextField
@@ -101,7 +99,7 @@ export default function ContactDetails({
10199
id="pinterest"
102100
label="Pinterest"
103101
href={values.pinterest}
104-
tooltipTitle="Enter Pinterest url"
102+
tooltipTitle="Enter a full Pinterest URL, e.g., https://www.pinterest.com/hackforla"
105103
/>
106104
<TextField
107105
id="pinterest"
@@ -121,7 +119,7 @@ export default function ContactDetails({
121119
id="linkedin"
122120
label="LinkedIn"
123121
href={values.linkedin}
124-
tooltipTitle="Enter Linkedin url"
122+
tooltipTitle="Enter a full LinkedIn URL, e.g., https://www.linkedin.com/hackforla"
125123
/>
126124
<TextField
127125
id="linkedin"

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "foodoasis-web-api",
3-
"version": "1.0.86",
3+
"version": "1.0.87",
44
"author": "Hack for LA",
55
"description": "Web API Server for Food Oasis",
66
"main": "server.js",

0 commit comments

Comments
 (0)