@@ -2,6 +2,7 @@ import React, { useState } from 'react';
22import axiosInstance from '../../../api/apiconfig' ;
33import { toast } from 'react-toastify' ;
44import Loader from '../../loader' ;
5+ import "./testing.css" ;
56
67function ImageEditModal ( { images, onClose, onImageEdit, fetchData, selectedVehicleId } ) {
78 const [ editedImages , setEditedImages ] = useState ( [ ...images ] ) ;
@@ -106,22 +107,34 @@ function ImageEditModal({ images, onClose, onImageEdit, fetchData, selectedVehic
106107
107108 </ div >
108109 < div className = "flex justify-between mt-4" >
109- { loading ? < > < Loader /> </ > : < > </ > }
110- < button
111- type = "submit"
112- onClick = { handleSaveImages }
113- className = "w-full text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-lg px-6 py-3 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
114- >
115- Upload Images
116- </ button >
117- < button
118- type = "button"
119- onClick = { onClose }
120- className = "w-full text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 font-medium rounded-lg text-lg px-6 py-3 text-center dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800"
121- >
122- Cancel
123- </ button >
124- </ div >
110+ { loading ? (
111+ < div className = "flex items-center mx-44" >
112+ < div className = "three-body" >
113+ < div className = "three-body__dot" > </ div >
114+ < div className = "three-body__dot" > </ div >
115+ < div className = "three-body__dot" > </ div >
116+ </ div >
117+ </ div >
118+ ) : (
119+ < >
120+ < button
121+ type = "submit"
122+ onClick = { handleSaveImages }
123+ className = "w-full text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-lg px-6 py-3 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
124+ >
125+ Upload Images
126+ </ button >
127+ < button
128+ type = "button"
129+ onClick = { onClose }
130+ className = "w-full text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 font-medium rounded-lg text-lg px-6 py-3 text-center dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800"
131+ >
132+ Cancel
133+ </ button >
134+ </ >
135+ ) }
136+ </ div >
137+
125138 </ div >
126139 </ div >
127140 ) ;
0 commit comments