feat: moved to shared-components and implemented focal point picker in RTE
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
} from "@contentstack/venus-components"
|
||||
|
||||
import type { FocalPoint, InsertResponse } from "~/types/imagevault"
|
||||
import FocalPointPicker from "./FocalPointPicker"
|
||||
import FocalPointPicker from "~/shared-components/FocalPointPicker"
|
||||
|
||||
type ImageEditModalProps = {
|
||||
fieldData: InsertResponse
|
||||
@@ -123,8 +123,7 @@ export default function ImageEditModal({
|
||||
<FieldLabel htmlFor="focalPoint">Focal Point</FieldLabel>
|
||||
<TextInput
|
||||
value={`X: ${focalPoint.x}, Y: ${focalPoint.y}`}
|
||||
placeholder="Caption for image..."
|
||||
name="caption"
|
||||
name="focalPoint"
|
||||
disabled
|
||||
/>
|
||||
</FieldComponent>
|
||||
|
||||
Reference in New Issue
Block a user