Skip to content

Commit

Permalink
removing ALL yarn errors
Browse files Browse the repository at this point in the history
  • Loading branch information
clen678 committed Sep 16, 2024
1 parent 5c3dfc2 commit 9aa39aa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Dispatch, SetStateAction, useEffect, useState } from "react";
import { Dispatch, SetStateAction } from "react";
import Event from "./Event.tsx"

type Event = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const ProfileEditModal = () => {
const [emergencyContactRelationship, setEmergencyContactRelationship] = useState<string>('');

const [selectedTab, setSelectedTab] = useState('Personal Details');
const [page, setPage] = useState(1);

const handleGenderChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const { id } = event.target;
Expand Down
3 changes: 1 addition & 2 deletions web/src/components/TestComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { SetStateAction } from "react"
import EventsScrollContainer from "./Dashboard/dashboardDiscover/EventsScrollContainer"
export default function TestingComponent() {
return (
Expand All @@ -10,7 +9,7 @@ export default function TestingComponent() {
<h1 className="bg-secondary-light text-body font-sans">Secondary-light Body Poppins (medium)</h1>
<h1 className="bg-neutral text-detail ">Neutral Poppins (semibold)</h1>
<h1 className="bg-grey text-section-header font-serif">Grey Section Header Lora</h1>
<EventsScrollContainer events={[]} setEventDetails={function (value: SetStateAction<{ event_title: string; description: string; tasks: string; notes: string; contact: string; tag: string[]; start_date_time: Date; end_date_time: Date; location: string; image: string; host: string; coordinates: { longitude: string; latitude: string } } | null>): void {
<EventsScrollContainer events={[]} setEventDetails={function (): void {
throw new Error("Function not implemented.")
} }/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/context/UserContext.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createContext, Dispatch } from "react";
import { User } from "@components/UserDetails";
import { User } from "@components/legacy/UserDetails";

export interface Action {
type: string;
Expand Down
2 changes: 1 addition & 1 deletion web/src/context/UserContextProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UsersContext } from "./UserContext";
import { User } from "@components/UserDetails";
import { User } from "@components/legacy/UserDetails";
import { Action } from "./UserContext";
import { ReactNode, useReducer } from "react";

Expand Down

0 comments on commit 9aa39aa

Please sign in to comment.