initiate drf app
This commit is contained in:
56
frontend/app/types/index.ts
Normal file
56
frontend/app/types/index.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
import Image, { StaticImageData } from 'next/image'
|
||||
|
||||
export interface TextInputProps {
|
||||
value: string
|
||||
handleChange?: (e: React.ChangeEvent<HTMLInputElement>) => void
|
||||
label?: string
|
||||
placeholder?: string
|
||||
name: string
|
||||
type?: 'text' | 'email' | 'password'
|
||||
className?: string
|
||||
maxLength?: number
|
||||
tooltip?: string | React.ReactNode
|
||||
}
|
||||
|
||||
export interface ButtonProps {
|
||||
onClick?: () => void
|
||||
className?: string
|
||||
text?: string
|
||||
type?: 'button'
|
||||
}
|
||||
|
||||
export interface SearchCardProps {
|
||||
id: number
|
||||
username: string
|
||||
userImg: string | StaticImageData
|
||||
start_point: string
|
||||
country_from: string
|
||||
country_from_icon: string | StaticImageData
|
||||
country_from_code: string
|
||||
end_point: string
|
||||
country_to: string
|
||||
country_to_icon: string | StaticImageData
|
||||
country_to_code: string
|
||||
cargo_type: string
|
||||
user_request: string
|
||||
moving_type: string
|
||||
estimated_date: Date
|
||||
user_comment: string
|
||||
day_out?: Date
|
||||
day_in?: Date
|
||||
}
|
||||
|
||||
export interface AccordionProps {
|
||||
title: string
|
||||
content: string | React.ReactNode
|
||||
}
|
||||
|
||||
export interface FAQ {
|
||||
id: number
|
||||
title: string
|
||||
content: string | React.ReactNode
|
||||
}
|
||||
|
||||
export interface FAQProps {
|
||||
faqs: FAQ[]
|
||||
}
|
||||
Reference in New Issue
Block a user