Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jjstnlee committed Nov 13, 2024
1 parent a5b730e commit fc29c9a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 0 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client';

import { CSSProperties, useEffect, useState } from 'react';
import AllProjectsModal from '@/components/AllProjectsModal';
import MapViewScreen from '@/components/MapViewScreen';
import queryProjects from '../api/supabase/queries/query';
import { Project } from '../types/schema';
Expand All @@ -22,7 +21,6 @@ export default function Home() {
<main style={mainStyles}>
{error ? <div style={errorStyles}>{error}</div> : null}
{projects ? <MapViewScreen projects={projects} /> : null}
<AllProjectsModal projects={projects} />
</main>
);
}
Expand Down
10 changes: 8 additions & 2 deletions components/MapViewScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ import Map from '@/components/Map';
import { SearchBar } from '@/components/SearchBar';
import { FilterType } from '@/types/schema';
import { Project } from '../../types/schema';
import ProjectsListingModal from '../ProjectsListingModal';

export default function MapViewScreen(props: { projects: Project[] | null }) {
export default function MapViewScreen({
projects,
}: {
projects: Project[] | null;
}) {
const filters: FilterType[] = [
{
id: 'status',
Expand Down Expand Up @@ -42,7 +47,8 @@ export default function MapViewScreen(props: { projects: Project[] | null }) {
<>
<SearchBar />
<FilterBar filters={filters} onFilterChange={handleFilterChange} />
<Map projects={props.projects} />
<Map projects={projects} />
<ProjectsListingModal projects={projects} />
</>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
ProjectDetails,
} from './styles';

export default function AllProjectsModal({
export default function ProjectsListingModal({
projects,
}: {
projects: Project[] | null;
Expand Down
File renamed without changes.

0 comments on commit fc29c9a

Please sign in to comment.