chore: assign todos (#7297)

This commit is contained in:
forehalo
2024-06-21 07:54:14 +00:00
parent e085b927f6
commit 7b3673ae82
121 changed files with 137 additions and 157 deletions

View File

@@ -48,7 +48,7 @@ export const inputStyle = style({
});
export const popperStyle = style({
boxShadow: cssVar('shadow2'),
// TODO: for menu offset, need to be optimized
// TODO(@catsjuice): for menu offset, need to be optimized
marginTop: '16px',
background: cssVar('backgroundOverlayPanelColor'),
borderRadius: '12px',

View File

@@ -29,7 +29,7 @@ export interface WeekDatePickerProps
handleRef?: ForwardedRef<WeekDatePickerHandle>;
}
// TODO: i18n
// TODO(catsjuice): i18n
const weekDays = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
// const weekDays = ['日', '一', '二', '三', '四', '五', '六'];
const format = 'YYYY-MM-DD';

View File

@@ -113,15 +113,4 @@ export const FlexWrapper = styled(Wrapper, {
};
});
// TODO: Complete me
export const GridWrapper = styled(Wrapper, {
shouldForwardProp: prop => {
return ![''].includes(prop as string);
},
})<WrapperProps>(() => {
return {
display: 'grid',
};
});
export default Wrapper;

View File

@@ -132,7 +132,7 @@ export const menuTrigger = style({
color: cssVar('textDisableColor'),
pointerEvents: 'none',
},
// TODO: wait for design
// TODO(@catsjuice): wait for design
'&.error': {
// borderColor: 'var(--affine-error-color)',
},

View File

@@ -142,7 +142,7 @@ export const ConfirmModalProvider = ({ children }: PropsWithChildren) => {
value={{ openConfirmModal, closeConfirmModal, modalProps }}
>
{children}
{/* TODO: multi-instance support(unnecessary for now) */}
{/* TODO(@catsjuice): multi-instance support(unnecessary for now) */}
<ConfirmModal {...modalProps} onOpenChange={onOpenChange} />
</ConfirmModalContext.Provider>
);