Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmst committed Jun 6, 2024
1 parent 50b833c commit 8435024
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/app/[path]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ const Page = async ({ params }: PageProps) => {

return (
<div>
<HeroSection />
<HeroSection
path={path}
interviews={interviewsByTopic}
isError={isError}
/>
<HowItWorksSection />
<TopicsSection
path={path}
Expand Down
6 changes: 5 additions & 1 deletion src/app/components/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ const HeroSection = ({ path, interviews, isError }) => {
</div>
</div>
{results && (
<SpotResultsContainer data={results} interviews={interviews} />
<SpotResultsContainer
data={results}
interviews={interviews}
path={path}
/>
)}
</section>
);
Expand Down
1 change: 1 addition & 0 deletions src/app/components/TopicCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface TopicCardProps {
index: number;
serverUrl: string;
path: string;
isSpot?: boolean;
}

interface IconProps {
Expand Down
4 changes: 0 additions & 4 deletions src/config/formSources.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ export const pathToServerConfig = {
path: 'ma',
servers: ['Suffolk LIT Lab', 'Greater Boston Legal Services'],
},
gb: {
path: 'gb',
servers: ['Greater Boston Legal Services'],
},
};

export const formSources = {
Expand Down

0 comments on commit 8435024

Please sign in to comment.