MCPcopy Create free account

hub / github.com/amiraadev/rent-application-nextjs / functions

Functions71 in github.com/amiraadev/rent-application-nextjs

↓ 14 callersFunctiongetCurrentUser
()
app/actions/getCurrentUser.ts:10
↓ 6 callersFunctionsetCustomValue
(id: string, value: any)
app/components/modals/RentModal.tsx:68
↓ 5 callersFunctionuseCountries
()
app/hooks/useCountries.ts:11
↓ 4 callersFunctiongetByValue
(value: string)
app/hooks/useCountries.ts:14
↓ 3 callersFunctiongetReservations
( params: IParams )
app/actions/getReservations.ts:9
↓ 2 callersFunctiongetListings
(params: IListingsParams)
app/actions/getListings.ts:16
↓ 2 callersFunctiononNext
()
app/components/modals/RentModal.tsx:79
↓ 1 callersFunctiongetAll
()
app/hooks/useCountries.ts:12
↓ 1 callersFunctiongetFavoriteListings
()
app/actions/getFavoriteListings.ts:5
↓ 1 callersFunctiongetListingById
( params: IParams )
app/actions/getListingById.ts:7
↓ 1 callersFunctiongetSession
()
app/actions/getCurrentUser.ts:6
↓ 1 callersFunctiononSubmit
(data)
app/components/modals/RentModal.tsx:82
↓ 1 callersFunctionuseFavorite
({ listingId, currentUser }:IUseFavorite)
app/hooks/useFavorite.ts:15
FunctionAvatar
({src})
app/components/Avatar.tsx:10
FunctionButton
({ label, onClick, disabled, outline, small, icon: Icon, })
app/components/Button.tsx:14
FunctionCalendar
({ value, onChange, disabledDates, })
app/components/inputs/Calendar.tsx:15
FunctionCategories
()
app/components/navbar/Categories.tsx:97
FunctionCategoryBox
({ icon: Icon, label, selected, })
app/components/CategoryBox.tsx:12
FunctionCategoryInput
({ icon: Icon, label, selected, onClick, })
app/components/inputs/CategoryInput.tsx:13
FunctionClientOnly
({ children })
app/components/ClientOnly.tsx:9
FunctionContainer
({ children })
app/components/Container.tsx:7
FunctionCounter
({ title, subtitle, value, onChange, })
app/components/inputs/Counter.tsx:14
FunctionCountrySelect
({ value, onChange })
app/components/inputs/CountrySelect.tsx:20
FunctionDELETE
( request: Request, { params }: { params: IParams }, // params: IParams )
app/api/reservations/[reservationId]/route.ts:10
FunctionDELETE
( request :Request, {params}:{params:Iparams} )
app/api/favorites/[listingId]/route.ts:38
FunctionDELETE
( request:Request, {params}:{params:IPArams} )
app/api/listings/[listingId]/route.ts:10
FunctionEmptyState
({ title = "No exact matches", subtitle = "Try changing or removing some of your filters.", showReset })
app/components/EmptyState.tsx:14
FunctionErrorState
({error})
app/error.tsx:10
FunctionFavoriteClient
({ listings, currentUser, })
app/favorites/FavoriteClient.tsx:13
FunctionHeading
({title,subtitle, center})
app/components/Heading.tsx:7
FunctionHeartButton
({ listingId, currentUser, })
app/components/HeartButton.tsx:13
FunctionHome
({ searchParams }: HomeProps)
app/page.tsx:15
FunctionImageUpload
({ onChange, value })
app/components/inputs/ImageUpload.tsx:16
FunctionInput
({ id, label, type = "text", disabled, formatPrice, required, register, errors, })
app/components/inputs/Input.tsx:18
FunctionListingCard
({ data, reservation, onAction, disabled, actionLabel, actionId = '', currentUser, })
app/components/listings/ListingCard.tsx:29
FunctionListingCategory
({ icon:Icon, label, description, })
app/components/listings/ListingCategory.tsx:11
FunctionListingClient
({ listing, reservations = [], currentUser, })
app/listings/[listingId]/ListingClient.tsx:31
FunctionListingHead
({ title, locationValue, imageSrc, id, currentUser, })
app/components/listings/ListingHead.tsx:18
FunctionListingInfo
({ user, description, guestCount, roomCount, bathroomCount, category, locationValue, })
app/components/listings/ListingInfo.tsx:29
FunctionListingPage
()
app/favorites/page.tsx:9
FunctionListingPage
({params}:{params:IParams})
app/listings/[listingId]/page.tsx:12
FunctionListingReservation
({ price, dateRange, totalPrice, onChangeDate, onSubmit, disabled, disabledDates, })
app/components/listings/ListingReservation.tsx:17
FunctionLoader
()
app/components/Loader.tsx:5
FunctionLoading
()
app/loading.tsx:3
FunctionLoginModal
()
app/components/modals/LoginModal.tsx:19
FunctionLogo
()
app/components/navbar/Logo.tsx:8
FunctionMap
({center})
app/components/Map.tsx:22
FunctionMenuItem
({onClick, label})
app/components/navbar/MenuItem.tsx:7
FunctionModal
({ isOpen, onClose, onSubmit, title, body, footer, actionLabel, disabled, secondaryAction, secondary
app/components/modals/Modal.tsx:19
FunctionNavbar
({currentUser})
app/components/navbar/Navbar.tsx:15
FunctionPOST
(request: Request)
app/api/register/route.ts:7
FunctionPOST
(request: Request)
app/api/reservations/route.ts:5
FunctionPOST
( request:Request, {params}:{params:Iparams} )
app/api/favorites/[listingId]/route.ts:9
FunctionPOST
(request: Request)
app/api/listings/route.ts:6
FunctionPropertiesClient
({ listings, currentUser })
app/properties/PropertiesClient.tsx:16
FunctionPropertiesPage
()
app/properties/page.tsx:9
FunctionRegisterModal
()
app/components/modals/RegisterModal.tsx:22
FunctionRentModal
()
app/components/modals/RentModal.tsx:29
FunctionReservationsClient
({ reservations, currentUser, })
app/reservations/ReservationsClient.tsx:16
FunctionReservationsPage
()
app/reservations/page.tsx:9
FunctionRootLayout
({ children, }: { children: React.ReactNode })
app/layout.tsx:24
FunctionSearch
()
app/components/navbar/Search.tsx:10
FunctionSearchModal
()
app/components/modals/SearchModal.tsx:26
FunctionToasterProvider
()
app/providers/ToasterProvider.tsx:4
FunctionTripsClient
({ reservations, currentUser })
app/trips/TripsClient.tsx:16
FunctionTripsPage
()
app/trips/page.tsx:9
FunctionUserMenu
({ currentUser })
app/components/navbar/UserMenu.tsx:20
Functionauthorize
(credentials)
pages/api/auth/[...nextauth].ts:27
FunctiononBack
()
app/components/modals/RentModal.tsx:76
FunctiononSubmit
(data)
app/components/modals/LoginModal.tsx:37
FunctiononSubmit
(data)
app/components/modals/RegisterModal.tsx:39