Skip to content

Commit

Permalink
new site toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
pogseal committed Nov 11, 2024
1 parent ed30be8 commit 17fe5e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/db/collections/sites/site-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export const Sites: CollectionConfig = {
label: "Public",
defaultValue: false,
},
{
name: "hideNewSiteButton",
type: "checkbox",
label: "Hide New Site Button",
defaultValue: false,
},
{
name: "enableAds",
type: "checkbox",
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_site+/_components/Column-1-Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function ColumnOneMenu({ site }: { site?: Site }) {
</ul>
</div>
)}
<NewSiteModal />
{!site?.hideNewSiteButton && <NewSiteModal />}
</LoggedIn>
<div className="fixed bottom-0 left-0 w-[70px] bg-1 border-r border-color py-3">
<LoggedIn>
Expand Down
1 change: 1 addition & 0 deletions app/routes/_site+/_utils/fetchSite.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const QUERY = gql`
trendingPages
isWhiteLabel
logoURL
hideNewSiteButton
announcementMessage
announcementLink
partnerSites {
Expand Down

0 comments on commit 17fe5e4

Please sign in to comment.