Skip to content

Commit

Permalink
fix: fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
celinechoiii committed Oct 31, 2024
1 parent 8be9176 commit f12a486
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion app/activeEvents/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export default function Page() {
</TitleBar>
<EventListingDiv>
{events.map(event => (
<EventListingCard key={event.event_id} performance_type={event.performance_type} />
<EventListingCard
key={event.event_id}
performance_type={event.performance_type}
/>
))}
</EventListingDiv>
</Container>
Expand Down
8 changes: 6 additions & 2 deletions components/EventListingCard/EventListingCard.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import React from 'react';
import { PerformanceType } from '@/types/schema';
import { EventListing } from './styles';
import { PerformanceType } from '@/types/schema'

export default function EventListingCard({ performance_type }: { performance_type: PerformanceType }) {
export default function EventListingCard({
performance_type,
}: {
performance_type: PerformanceType;
}) {
return <EventListing> {performance_type} </EventListing>;
}
2 changes: 1 addition & 1 deletion types/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export type PerformerType = 'Solo' | 'Duo' | 'Band';
export interface Availabilities {
availability_id: UUID;
facility_id: UUID;
name: string;
name: string;
additional_info: string;
}

Expand Down

0 comments on commit f12a486

Please sign in to comment.