Linting fixes
This commit is contained in:
@@ -11,17 +11,24 @@ import Svg from 'src/components/Svg'
|
||||
const CLOUDINARY_UPLOAD_PRESET = 'CadHub_project_images'
|
||||
const CLOUDINARY_UPLOAD_URL = 'https://api.cloudinary.com/v1_1/irevdev/upload'
|
||||
|
||||
export function ImageFallback({ width = 100, imageId = 'CadHub/eia1kwru54g2kf02s2xx', className = '' }) {
|
||||
export function ImageFallback({
|
||||
width = 100,
|
||||
imageId = 'CadHub/eia1kwru54g2kf02s2xx',
|
||||
className = '',
|
||||
}) {
|
||||
return (
|
||||
<div className="relative overflow-hidden w-full h-full">
|
||||
<CloudinaryImage
|
||||
className={"object-cover w-full h-full shadow overflow-hidden " + className }
|
||||
cloudName="irevdev"
|
||||
publicId={imageId}
|
||||
width={width}
|
||||
crop="scale"
|
||||
/>
|
||||
</div>)
|
||||
<div className="relative overflow-hidden w-full h-full">
|
||||
<CloudinaryImage
|
||||
className={
|
||||
'object-cover w-full h-full shadow overflow-hidden ' + className
|
||||
}
|
||||
cloudName="irevdev"
|
||||
publicId={imageId}
|
||||
width={width}
|
||||
crop="scale"
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default function ImageUploader({
|
||||
@@ -82,10 +89,7 @@ export default function ImageUploader({
|
||||
{cloudinaryId && isEditable && (
|
||||
<button className="w-full py-1 absolute z-10 bg-ch-blue-650 bg-opacity-50 hover:bg-opacity-80 bottom-0 right-0 left-0 flex items-center justify-center text-ch-gray-300">
|
||||
<span className="font-fira-code text-sm leading-4">Update</span>
|
||||
<Svg
|
||||
name="pencil-solid"
|
||||
className=" h-4 w-4 ml-4 mb-2"
|
||||
/>
|
||||
<Svg name="pencil-solid" className=" h-4 w-4 ml-4 mb-2" />
|
||||
</button>
|
||||
)}
|
||||
{isEditable && <input {...getInputProps()} />}
|
||||
|
||||
Reference in New Issue
Block a user