File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { useState } from 'react' ;
22import Image from 'next/image' ;
33import { booleanFilter } from '../../util/booleanFilter' ;
4+ import type { EventData } from '../../types' ;
45
5- type DisplayRCProps = {
6- name : string ;
7- src : string ;
8- event : boolean ;
9- description : string ;
10- venue : string ;
11- date : string ;
12- } ;
6+ type DisplayRCProps = EventData ;
137
148export default function DisplayRC ( {
159 name,
Original file line number Diff line number Diff line change @@ -3,15 +3,7 @@ import DisplayRC from '../../components/EventsDisplay';
33import logo from '../../../public/reactdevske.svg' ;
44import Head from 'next/head' ;
55import type { GetStaticProps } from 'next' ;
6-
7- type EventData = {
8- name : string ;
9- src : string ;
10- event : boolean ;
11- description : string ;
12- venue : string ;
13- date : string ;
14- } ;
6+ import type { EventData } from '../../types' ;
157
168type EventsProps = {
179 data : Array < EventData > ;
Original file line number Diff line number Diff line change 1+ export type EventData = {
2+ name : string ;
3+ src : string ;
4+ event : boolean ;
5+ description : string ;
6+ venue : string ;
7+ date : string ;
8+ } ;
You can’t perform that action at this time.
0 commit comments