mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 11:06:25 +08:00
chore(core): removed obsolete TODO (#7337)
Cleaned up some TODOs that no longer need to be done
This commit is contained in:
-4
@@ -81,10 +81,6 @@ export const LabelsPanel = () => {
|
||||
condition: workspace.flavour === 'affine-cloud',
|
||||
label: 'syncCloud',
|
||||
},
|
||||
//TODO(@JimmFly): add these labels
|
||||
// { status==="synced", label: 'availableOffline' }
|
||||
// { workspace.flavour === 'affine-Docker', label: 'syncDocker' }
|
||||
// { workspace.flavour === 'self-hosted', label: 'selfHosted' }
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
@@ -29,7 +29,6 @@ export const descriptionStyle = style({
|
||||
});
|
||||
export const buttonStyle = style({
|
||||
marginTop: '18px',
|
||||
// todo(@JimmFly): new color scheme should be used
|
||||
});
|
||||
export const actionsStyle = style({
|
||||
display: 'flex',
|
||||
|
||||
-1
@@ -66,7 +66,6 @@ globalStyle(`[data-draggable=true][data-dragging=true] ${dndCell}:before`, {
|
||||
opacity: 1,
|
||||
});
|
||||
|
||||
// TODO(@JimmFly): remove global style
|
||||
globalStyle(`${root} > :first-child`, {
|
||||
paddingLeft: '16px',
|
||||
});
|
||||
|
||||
@@ -109,7 +109,6 @@ export const CollectionListItem = (props: CollectionListItemProps) => {
|
||||
props.title,
|
||||
]);
|
||||
|
||||
// TODO(@JimmFly): use getDropItemId
|
||||
const { setNodeRef, attributes, listeners, isDragging } = useDraggable({
|
||||
id: getDNDId('collection-list', 'collection', props.collectionId),
|
||||
data: {
|
||||
|
||||
@@ -66,7 +66,6 @@ globalStyle(`[data-draggable=true][data-dragging=true] ${dndCell}:before`, {
|
||||
opacity: 1,
|
||||
});
|
||||
|
||||
// TODO(@JimmFly): remove global style
|
||||
globalStyle(`${root} > :first-child`, {
|
||||
paddingLeft: '16px',
|
||||
});
|
||||
|
||||
@@ -167,7 +167,6 @@ export const PageListItem = (props: PageListItemProps) => {
|
||||
props.title,
|
||||
]);
|
||||
|
||||
// TODO(@JimmFly): use getDropItemId
|
||||
const { setNodeRef, attributes, listeners, isDragging } = useDraggable({
|
||||
id: getDNDId('doc-list', 'doc', props.pageId),
|
||||
data: {
|
||||
|
||||
@@ -65,7 +65,6 @@ globalStyle(`[data-draggable=true][data-dragging=true] ${dndCell}:before`, {
|
||||
opacity: 1,
|
||||
});
|
||||
|
||||
// TODO(@JimmFly): remove global style
|
||||
globalStyle(`${root} > :first-child`, {
|
||||
paddingLeft: '16px',
|
||||
});
|
||||
|
||||
@@ -98,7 +98,6 @@ export const TagListItem = (props: TagListItemProps) => {
|
||||
);
|
||||
}, [props.color, props.onSelectedChange, props.selectable, props.selected]);
|
||||
|
||||
// TODO(@JimmFly): use getDropItemId
|
||||
const { setNodeRef, attributes, listeners, isDragging } = useDraggable({
|
||||
id: getDNDId('tag-list', 'tag', props.tagId),
|
||||
data: {
|
||||
|
||||
@@ -74,9 +74,7 @@ export type TagListItemProps = {
|
||||
export interface ItemListHeaderProps {}
|
||||
|
||||
// TODO(@JimmFly): a temporary solution. may need to be refactored later
|
||||
export type ItemGroupByType = 'createDate' | 'updatedDate'; // TODO(@JimmFly): can add more later
|
||||
|
||||
// TODO(@JimmFly): a temporary solution. may need to be refactored later
|
||||
export type ItemGroupByType = 'createDate' | 'updatedDate';
|
||||
export interface SortBy {
|
||||
key: 'createDate' | 'updatedDate';
|
||||
order: 'asc' | 'desc';
|
||||
|
||||
Reference in New Issue
Block a user