Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
suvanbanerjee committed Dec 25, 2024
1 parent 1c50e9b commit 00f9004
Show file tree
Hide file tree
Showing 21 changed files with 49 additions and 954 deletions.
17 changes: 12 additions & 5 deletions app/id/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,22 @@ import { ProfileCard } from '@/components/profile/profile-card';
interface UserData {
fullName: string;
bloodGroup: string;
phoneNumber: string;
emergencyContact: string[];
address: string;
vehicleNumber: string;
gender: string;
medications?: string;
allergies?: string;
medicalNotes?: string;
asthma?: boolean;
highBP?: boolean;
diabetes?: boolean;
pregnancyStatus?: boolean;
organDonor?: boolean;
avatarUrl?: string;
height?: string;
weight?: string;
dateOfBirth: string;
height: string;
weight: string;
emailVerified: boolean;
insurancePolicy?: string;
}

const UserDetail: React.FC = () => {
Expand Down
6 changes: 2 additions & 4 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import { Inter } from 'next/font/google'
import { ThemeProvider } from "@/components/theme-provider"
import { Navbar } from "@/components/navbar"
import { Footer } from "@/components/footer"
import { Toaster } from "@/components/ui/toaster"

const inter = Inter({ subsets: ['latin'] })

export const metadata: Metadata = {
title: 'OpenTag - Digital Vehicle Identification',
description: 'Open-source digital identification system for vehicles',
title: 'OpenTag',
description: 'Open-source medical identification made accessible for everyone.',
}

export default function RootLayout({
Expand All @@ -29,7 +28,6 @@ export default function RootLayout({
>
<Navbar />
{children}
<Toaster />
<Footer />
</ThemeProvider>
</body>
Expand Down
6 changes: 3 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ export default function Home() {
<p className="text-muted-foreground text-sm sm:text-base mb-4">
Put it in simple terms, OpenTag is like a sticker that you can attach to your personal items. This sticker contains a QR code that, when scanned, will display your medical information.
</p>
<p className="text-muted-foreground text-sm sm:text-base">
You may ask why you would need this. Well, imagine you are in an accident and are unable to communicate with the paramedics. They can scan the QR code on your OpenTag and get all the information they need to save your life.
</p>
<p className="text-muted-foreground text-sm sm:text-base">
You may ask why you would need this. Well, imagine you are unconscious and unable to communicate with the paramedics. They can scan the QR code on your OpenTag to get all the information they need to save your life and contact your family.
</p>
</div>
</div>
</section>
Expand Down
1 change: 1 addition & 0 deletions components/auth/register-form.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
"use client";

import { useState } from "react";
Expand Down
1 change: 1 addition & 0 deletions components/auth/update-form.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
"use client";

import { useEffect, useState } from "react";
Expand Down
2 changes: 2 additions & 0 deletions components/health-article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ export async function HealthArticle() {
return (
<div className="size-full items-center justify-center overflow-hidden pt-8 max-w-[80vw] mx-auto">
<BoxReveal boxColor={"#e51d15"} duration={1}>
<div>
<p className="text-2xl font-semibold hidden sm:block">
Every Year, Millions of Lives Are Lost Because Critical Medical Data Isn’t Accessible in Time. <span className="text-red-600 font-bold">OpenTag</span> Lets You Change That—With Just a QR Code.
</p>
<p className="text-xl font-semibold sm:hidden">
Critical <span className="text-red-600 font-bold">Medical Data</span> Isn't Accessible in Time.
</p>
</div>
</BoxReveal>

<BoxReveal boxColor={"#e51d15"} duration={1}>
Expand Down
8 changes: 5 additions & 3 deletions components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { ModeToggle } from "@/components/mode-toggle";
import { TagIcon } from "lucide-react";
import Image from "next/image";
import { auth } from "@/lib/firebaseClient";
import { signOut } from "firebase/auth";
import { signOut, User } from "firebase/auth";

export function Navbar() {
const [user, setUser] = useState<firebase.User | null>(null);
const [user, setUser] = useState<User | null>(null);
const [menuOpen, setMenuOpen] = useState(false);

useEffect(() => {
Expand Down Expand Up @@ -64,7 +64,9 @@ export function Navbar() {
</Button>
</>
)}
<ModeToggle className="hidden sm:inline" />
<div className="hidden sm:inline">
<ModeToggle />
</div>
</div>

<div className="sm:hidden">
Expand Down
11 changes: 5 additions & 6 deletions components/profile/profile-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ interface ProfileCardProps {
user: {
fullName: string;
bloodGroup: string;
phoneNumber: string;
height: string;
weight: string;
emergencyContact: string[];
address: string;
vehicleNumber: string;
gender: string;
medications?: string;
allergies?: string;
medicalNotes?: string;
Expand All @@ -19,12 +21,9 @@ interface ProfileCardProps {
diabetes?: boolean;
pregnancyStatus?: boolean;
organDonor?: boolean;
avatarUrl?: string;
dateOfBirth: string;
height?: string;
weight?: string;
emailVerified: boolean;
insurancePolicy?: string; // Added insurancePolicy field
insurancePolicy?: string;
};
}

Expand Down
1 change: 1 addition & 0 deletions components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const buttonVariants = cva(
{
variants: {
variant: {
primary: 'bg-primary text-primary-foreground hover:bg-primary/90',
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
destructive:
'bg-destructive text-destructive-foreground hover:bg-destructive/90',
Expand Down
2 changes: 1 addition & 1 deletion components/ui/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Card = React.forwardRef<
<div
ref={ref}
className={cn(
'rounded-lg border bg-card text-card-foreground shadow-sm',
'rounded-lg border bg-card text-card-foreground shadow-sm w-[70vw]',
className
)}
{...props}
Expand Down
Loading

0 comments on commit 00f9004

Please sign in to comment.