Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump theguild components and migrate #14

Merged
merged 5 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions website/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-expect-error the guild's next config doesnt have types
import { withGuildDocs } from '@theguild/components/next.config';

export default withGuildDocs({
Expand Down
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"check:type": "tsc --noEmit"
},
"dependencies": {
"@theguild/components": "^6.1.0",
"@theguild/components": "^6.4.0",
"clsx": "^2.0.0",
"next": "^14.0.3",
"next": "^14.1.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.12.0",
Expand Down
6 changes: 3 additions & 3 deletions website/src/SignUpForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export function SignUpForm() {

const data = new FormData(e.currentTarget);
const values = {
name: data.get('name').toString(),
email: data.get('email').toString(),
notes: data.get('notes').toString(),
name: data.get('name')?.toString() || '',
email: data.get('email')?.toString() || '',
notes: data.get('notes')?.toString() || '',
};

setState('pending');
Expand Down
56 changes: 28 additions & 28 deletions website/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,34 @@ import { Anchor, Image } from '@theguild/components';
import clsx from 'clsx';
import { StaticImageData } from 'next/image';
import { useRouter } from 'next/router';
import logoFullSvg from 'public/logo-full.svg';
import assistantsDetailsDarkImage from 'public/screenshots/assistants_details_dark.png';
import assistantsDetailsLightImage from 'public/screenshots/assistants_details_light.png';
import caseStudiesDetailsAssignedTherapistsDarkImage from 'public/screenshots/case_studies_details_assigned_therapists_dark.png';
import caseStudiesDetailsAssignedTherapistsLightImage from 'public/screenshots/case_studies_details_assigned_therapists_light.png';
import caseStudiesDetailsDarkImage from 'public/screenshots/case_studies_details_dark.png';
import caseStudiesDetailsLightImage from 'public/screenshots/case_studies_details_light.png';
import logoFullSvg from '../public/logo-full.svg';
import assistantsDetailsDarkImage from '../public/screenshots/assistants_details_dark.png';
import assistantsDetailsLightImage from '../public/screenshots/assistants_details_light.png';
import caseStudiesDetailsAssignedTherapistsDarkImage from '../public/screenshots/case_studies_details_assigned_therapists_dark.png';
import caseStudiesDetailsAssignedTherapistsLightImage from '../public/screenshots/case_studies_details_assigned_therapists_light.png';
import caseStudiesDetailsDarkImage from '../public/screenshots/case_studies_details_dark.png';
import caseStudiesDetailsLightImage from '../public/screenshots/case_studies_details_light.png';
// screenshots
import clientsDarkImage from 'public/screenshots/clients_dark.png';
import clientsDetailsAssignedTherapistsDarkImage from 'public/screenshots/clients_details_assigned_therapists_dark.png';
import clientsDetailsAssignedTherapistsLightImage from 'public/screenshots/clients_details_assigned_therapists_light.png';
import clientsDetailsDarkImage from 'public/screenshots/clients_details_dark.png';
import clientsDetailsLightImage from 'public/screenshots/clients_details_light.png';
import clientsLightImage from 'public/screenshots/clients_light.png';
import conclusionDetailsDarkImage from 'public/screenshots/conclusion_details_dark.png';
import conclusionDetailsLightImage from 'public/screenshots/conclusion_details_light.png';
import desktopClientsDarkImage from 'public/screenshots/desktop_clients_dark.png';
import desktopClientsLightImage from 'public/screenshots/desktop_clients_light.png';
import formsResponseDarkImage from 'public/screenshots/forms_response_dark.png';
import formsResponseLightImage from 'public/screenshots/forms_response_light.png';
import mobileClientsDarkImage from 'public/screenshots/mobile_clients_dark.png';
import mobileClientsLightImage from 'public/screenshots/mobile_clients_light.png';
import tabletClientsDarkImage from 'public/screenshots/tablet_clients_dark.png';
import tabletClientsLightImage from 'public/screenshots/tablet_clients_light.png';
import therapistsDetailsDarkImage from 'public/screenshots/therapists_details_dark.png';
import therapistsDetailsLightImage from 'public/screenshots/therapists_details_light.png';
import treatmentsDetailsDarkImage from 'public/screenshots/treatments_details_dark.png';
import treatmentsDetailsLightImage from 'public/screenshots/treatments_details_light.png';
import clientsDarkImage from '../public/screenshots/clients_dark.png';
import clientsDetailsAssignedTherapistsDarkImage from '../public/screenshots/clients_details_assigned_therapists_dark.png';
import clientsDetailsAssignedTherapistsLightImage from '../public/screenshots/clients_details_assigned_therapists_light.png';
import clientsDetailsDarkImage from '../public/screenshots/clients_details_dark.png';
import clientsDetailsLightImage from '../public/screenshots/clients_details_light.png';
import clientsLightImage from '../public/screenshots/clients_light.png';
import conclusionDetailsDarkImage from '../public/screenshots/conclusion_details_dark.png';
import conclusionDetailsLightImage from '../public/screenshots/conclusion_details_light.png';
import desktopClientsDarkImage from '../public/screenshots/desktop_clients_dark.png';
import desktopClientsLightImage from '../public/screenshots/desktop_clients_light.png';
import formsResponseDarkImage from '../public/screenshots/forms_response_dark.png';
import formsResponseLightImage from '../public/screenshots/forms_response_light.png';
import mobileClientsDarkImage from '../public/screenshots/mobile_clients_dark.png';
import mobileClientsLightImage from '../public/screenshots/mobile_clients_light.png';
import tabletClientsDarkImage from '../public/screenshots/tablet_clients_dark.png';
import tabletClientsLightImage from '../public/screenshots/tablet_clients_light.png';
import therapistsDetailsDarkImage from '../public/screenshots/therapists_details_dark.png';
import therapistsDetailsLightImage from '../public/screenshots/therapists_details_light.png';
import treatmentsDetailsDarkImage from '../public/screenshots/treatments_details_dark.png';
import treatmentsDetailsLightImage from '../public/screenshots/treatments_details_light.png';
import { SignUpForm } from './SignUpForm';

const gradients: [string, string][] = [
Expand Down Expand Up @@ -1064,7 +1064,7 @@ function Accordion({
children: React.ReactNode;
}) {
const router = useRouter();
const detailsRef = useRef<HTMLDetailsElement>();
const detailsRef = useRef<HTMLDetailsElement | null>(null);
useEffect(() => {
const elId = router.asPath.split('#')?.[1];
if (!elId) {
Expand Down
6 changes: 4 additions & 2 deletions website/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { defineConfig } from '@theguild/components';
import { defineConfig, PRODUCTS } from '@theguild/components';

export default defineConfig({
siteName: 'HELTIN',
websiteName: 'heltin',
description: 'Interdisciplinary registry for a holistic view on mental health',
docsRepositoryBase: 'https://github.com/bhidapa/heltin',
logo: PRODUCTS.HELTIN.logo({ className: 'w-7' }),
});
10 changes: 3 additions & 7 deletions website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"module": "esnext",
"resolveJsonModule": true,
"allowJs": true,
"checkJs": true,
"noEmit": true,
"incremental": true,
"isolatedModules": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"jsx": "preserve"
},
"include": [
Expand All @@ -23,5 +19,5 @@
"tailwind.config.cjs",
"theme.config.tsx"
],
"exclude": ["build"]
"exclude": ["node_modules"]
}
Loading
Loading