From 5ddb5100ad6fe6fb1b4b24c3c8b5bc831a940d0b Mon Sep 17 00:00:00 2001 From: ascarbek Date: Fri, 24 Mar 2023 20:20:56 +0600 Subject: [PATCH] chore: change field type --- .../_shared/EditRow/ChangeFieldTypePopup.tsx | 4 +-- .../components/_shared/EditRow/EditRow.tsx | 28 ++++++++++++++----- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/ChangeFieldTypePopup.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/ChangeFieldTypePopup.tsx index 59203d5326..da7e8b0375 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/ChangeFieldTypePopup.tsx +++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/ChangeFieldTypePopup.tsx @@ -23,7 +23,7 @@ export const ChangeFieldTypePopup = ({ }: { top: number; right: number; - onClick: () => void; + onClick: (newType: FieldType) => void; onOutsideClick: () => void; }) => { const ref = useRef(null); @@ -53,7 +53,7 @@ export const ChangeFieldTypePopup = ({
{typesOrder.map((t, i) => (