Forráskód Böngészése

chore: edit row components reorganize

ascarbek 2 éve
szülő
commit
da1ee430b0

+ 0 - 0
frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditCellText.tsx → frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditCellText.tsx


+ 3 - 3
frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditCellWrapper.tsx → 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,

+ 2 - 2
frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditFieldPopup.tsx → 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';

+ 1 - 1
frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/EditRow.tsx → 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';
 

+ 0 - 0
frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/FieldTypeIcon.tsx → frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/FieldTypeIcon.tsx


+ 0 - 0
frontend/appflowy_tauri/src/appflowy_app/components/board/EditBoardRow/FieldTypeName.tsx → frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/FieldTypeName.tsx


+ 1 - 1
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);