-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ngwesinsandar112/bree 144 event create flow #20
base: main
Are you sure you want to change the base?
Conversation
… into ngwesinsandar112/bree-144-event-create-flow
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
export const getDDLCities = async () => { | ||
const response = await axios.get(`users/cities`); | ||
|
||
return response.data.data?.map((c: CityData) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return response.data.data?.map((c: CityData) => { | |
return response.data.data?.map((city: CityData) => { |
const { data: cities } = useQuery<SelectOption[]>({ | ||
queryKey: ["city"], | ||
queryFn: () => { | ||
return getDDLCities(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return getDDLCities(); | |
return getCitiesListForDropdown(); |
import { useEffect, useRef, useState } from "react"; | ||
|
||
interface EventCreateSecondStepForm { | ||
image: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
image: any; | |
image: string; |
@@ -0,0 +1,20 @@ | |||
import Resizer from "react-image-file-resizer"; | |||
|
|||
const useImageResize = (file: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const useImageResize = (file: any) => { | |
const useImageResize = (file: File) => { |
No description provided.