diff --git a/components/admin/listing-form/ListingForm.tsx b/components/admin/listing-form/ListingForm.tsx
index 3a75f9e4..20669f2a 100644
--- a/components/admin/listing-form/ListingForm.tsx
+++ b/components/admin/listing-form/ListingForm.tsx
@@ -4,6 +4,7 @@ import { Formik, Form, Field, FieldProps, useFormikContext } from 'formik'
import ReactSelect from 'react-select'
import type { Options } from 'react-select'
import { Category } from '@prisma/client'
+import NextLink from 'next/link'
import {
chakra,
Box,
@@ -249,7 +250,18 @@ const ListingForm = ({ categories, listing, handleSubmit }: Props) => {
))}
- Categories can be easily changed later
+ {categories.length === 0 ? (
+
+ Looks like you haven't created categories yet. You
+ can add some{' '}
+
+ on this page
+
+ .
+
+ ) : (
+ 'Categories can be easily changed later'
+ )}
Please select a category
diff --git a/components/layout/Layout.module.scss b/components/layout/Layout.module.scss
index 86d899c5..960103ad 100644
--- a/components/layout/Layout.module.scss
+++ b/components/layout/Layout.module.scss
@@ -8,6 +8,10 @@
color: rgb(0 0 0 / 70%);
}
+ h2, h3 {
+ margin-top: 1rem;
+ }
+
h2 {
font-size: 1.75rem;
font-weight: 600;
diff --git a/pages/api/categories/index.ts b/pages/api/categories/index.ts
index 1cf1a0e1..74ca9d70 100644
--- a/pages/api/categories/index.ts
+++ b/pages/api/categories/index.ts
@@ -20,7 +20,7 @@ const handler = async (
where: {
web: {
slug: {
- contains: web || 'cambridge-city',
+ contains: web,
},
},
},
diff --git a/store/StoreProvider.tsx b/store/StoreProvider.tsx
index 3174c4b5..21da7e61 100644
--- a/store/StoreProvider.tsx
+++ b/store/StoreProvider.tsx
@@ -4,14 +4,12 @@ import { useMediaQuerySSR } from '@hooks/application'
import { AppContext } from '@store/AppContext'
import { useWebs } from '@hooks/webs'
-const DEFAULT_SELECTED_WEB = 'cambridge-city'
-
const StoreProvider = ({ children }) => {
const isMobile = useMediaQuerySSR('(max-width: 760px)')
const [isAdminMode, setIsAdminMode] = useState(false)
const [selectedWebSlug, setSelectedWebSlug] = useLocalStorage(
'selected-web',
- DEFAULT_SELECTED_WEB,
+ null,
)
const [subdomain, setSubdomain] = useState()
diff --git a/styles/styles.global.scss b/styles/styles.global.scss
index 1002ba20..478a9692 100644
--- a/styles/styles.global.scss
+++ b/styles/styles.global.scss
@@ -14,7 +14,7 @@ body {
* {
margin: 0;
- font-family: Poppins, sans-serif;
+ font-family: Poppins, sans-serif;
font-display: swap;
}
@@ -45,3 +45,12 @@ a {
text-decoration: none !important;
}
}
+
+/* stylelint-disable-next-line no-descending-specificity */
+p > a {
+ color: #3A8159 !important;
+
+ &:hover {
+ color: #09622f !important;
+ }
+}