From 98e9ba19d60af00bc228c32f88420e18b64d7179 Mon Sep 17 00:00:00 2001 From: ascarbek Date: Thu, 23 Mar 2023 00:07:17 +0600 Subject: [PATCH] chore: edit row components reorganize --- .../EditBoardRow => _shared/EditRow}/EditCellText.tsx | 0 .../EditBoardRow => _shared/EditRow}/EditCellWrapper.tsx | 6 +++--- .../EditBoardRow => _shared/EditRow}/EditFieldPopup.tsx | 4 ++-- .../{board/EditBoardRow => _shared/EditRow}/EditRow.tsx | 2 +- .../EditBoardRow => _shared/EditRow}/FieldTypeIcon.tsx | 0 .../EditBoardRow => _shared/EditRow}/FieldTypeName.tsx | 0 .../src/appflowy_app/components/board/Board.tsx | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename frontend/appflowy_tauri/src/appflowy_app/components/{board/EditBoardRow => _shared/EditRow}/EditCellText.tsx (100%) rename frontend/appflowy_tauri/src/appflowy_app/components/{board/EditBoardRow => _shared/EditRow}/EditCellWrapper.tsx (93%) rename frontend/appflowy_tauri/src/appflowy_app/components/{board/EditBoardRow => _shared/EditRow}/EditFieldPopup.tsx (93%) rename frontend/appflowy_tauri/src/appflowy_app/components/{board/EditBoardRow => _shared/EditRow}/EditRow.tsx (95%) rename frontend/appflowy_tauri/src/appflowy_app/components/{board/EditBoardRow => _shared/EditRow}/FieldTypeIcon.tsx (100%) rename frontend/appflowy_tauri/src/appflowy_app/components/{board/EditBoardRow => _shared/EditRow}/FieldTypeName.tsx (100%) diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditCellText.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditCellText.tsx similarity index 100% rename from frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditCellText.tsx rename to frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditCellText.tsx diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditCellWrapper.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditCellWrapper.tsx similarity index 93% rename from frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditCellWrapper.tsx rename to frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditCellWrapper.tsx index e5fe8bbc83..0de7cc38c9 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditCellWrapper.tsx +++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditCellWrapper.tsx @@ -8,9 +8,9 @@ import { getBgColor } from '$app/components/_shared/getColor'; import { EditorCheckSvg } from '$app/components/_shared/svg/EditorCheckSvg'; import { EditorUncheckSvg } from '$app/components/_shared/svg/EditorUncheckSvg'; import { useState } from 'react'; -import { EditCellText } from '$app/components/board/EditBoardRow/EditCellText'; -import { EditFieldPopup } from '$app/components/board/EditBoardRow/EditFieldPopup'; -import { FieldTypeIcon } from '$app/components/board/EditBoardRow/FieldTypeIcon'; +import { EditCellText } from '$app/components/_shared/EditRow/EditCellText'; +import { EditFieldPopup } from '$app/components/_shared/EditRow/EditFieldPopup'; +import { FieldTypeIcon } from '$app/components/_shared/EditRow/FieldTypeIcon'; export const EditCellWrapper = ({ viewId, diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditFieldPopup.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditFieldPopup.tsx similarity index 93% rename from frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditFieldPopup.tsx rename to frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditFieldPopup.tsx index 9b02590135..bc760a5eec 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditFieldPopup.tsx +++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditFieldPopup.tsx @@ -3,8 +3,8 @@ import useOutsideClick from '$app/components/_shared/useOutsideClick'; import { TrashSvg } from '$app/components/_shared/svg/TrashSvg'; import { CellController } from '$app/stores/effects/database/cell/cell_controller'; import { FieldType } from '@/services/backend'; -import { FieldTypeIcon } from '$app/components/board/EditBoardRow/FieldTypeIcon'; -import { FieldTypeName } from '$app/components/board/EditBoardRow/FieldTypeName'; +import { FieldTypeIcon } from '$app/components/_shared/EditRow/FieldTypeIcon'; +import { FieldTypeName } from '$app/components/_shared/EditRow/FieldTypeName'; import { useTranslation } from 'react-i18next'; import { TypeOptionController } from '$app/stores/effects/database/field/type_option/type_option_controller'; import { Some } from 'ts-results'; diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditRow.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditRow.tsx similarity index 95% rename from frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditRow.tsx rename to frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditRow.tsx index fb04a6f06f..580cfd61fa 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditRow.tsx +++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditRow.tsx @@ -2,7 +2,7 @@ import { CloseSvg } from '$app/components/_shared/svg/CloseSvg'; import { useRow } from '$app/components/_shared/database-hooks/useRow'; import { DatabaseController } from '$app/stores/effects/database/database_controller'; import { RowInfo } from '$app/stores/effects/database/row/row_cache'; -import { EditCellWrapper } from '$app/components/board/EditBoardRow/EditCellWrapper'; +import { EditCellWrapper } from '$app/components/_shared/EditRow/EditCellWrapper'; import AddSvg from '$app/components/_shared/svg/AddSvg'; import { useTranslation } from 'react-i18next'; diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/FieldTypeIcon.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/FieldTypeIcon.tsx similarity index 100% rename from frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/FieldTypeIcon.tsx rename to frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/FieldTypeIcon.tsx diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/FieldTypeName.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/FieldTypeName.tsx similarity index 100% rename from frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/FieldTypeName.tsx rename to frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/FieldTypeName.tsx diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/board/Board.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/board/Board.tsx index 4a90c5f81c..d7fcdd9968 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/components/board/Board.tsx +++ b/frontend/appflowy_tauri/src/appflowy_app/components/board/Board.tsx @@ -7,7 +7,7 @@ import { ViewLayoutTypePB } from '@/services/backend'; import { DragDropContext } from 'react-beautiful-dnd'; import { useState } from 'react'; import { RowInfo } from '$app/stores/effects/database/row/row_cache'; -import { EditRow } from '$app/components/board/EditBoardRow/EditRow'; +import { EditRow } from '$app/components/_shared/EditRow/EditRow'; export const Board = ({ viewId }: { viewId: string }) => { const { controller, rows, groups, onNewRowClick, onDragEnd } = useDatabase(viewId, ViewLayoutTypePB.Board);