feat(scroll-area-component): ScrollArea mit custom scrollbar [tsc:fail]
This commit is contained in:
parent
fc11c4a192
commit
23acce87ef
@ -1,8 +1,9 @@
|
||||
{
|
||||
"completed_features": [],
|
||||
"current_feature": "back-to-top-component",
|
||||
"current_feature": "scroll-area-component",
|
||||
"started_at": "2026-05-23T10:38:25.570852",
|
||||
"attempted_features": [
|
||||
"drawer-component"
|
||||
"drawer-component",
|
||||
"back-to-top-component"
|
||||
]
|
||||
}
|
||||
@ -4545,3 +4545,21 @@ src/index.ts(27,25): error TS2769: No overload matches this call.
|
||||
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
|
||||
- `10:38:48` **INFO** Committed feature back-to-top-component
|
||||
- `10:38:48` **INFO** Pushed: rc=0
|
||||
|
||||
## Phase-3 Feature: scroll-area-component (2026-05-23 10:38:48)
|
||||
|
||||
- `10:38:48` **INFO** Description: ScrollArea mit custom scrollbar
|
||||
- `10:38:48` **INFO** Generating apps/web/src/components/ScrollArea.tsx (ScrollArea-Component. Props: maxHeight (string), children, className?.…)
|
||||
- `10:38:51` **INFO** wrote 468 chars in 3.2s (attempt 1)
|
||||
- `10:38:51` **INFO** Running tsc --noEmit on api…
|
||||
- `10:38:53` **WARN** tsc errors:
|
||||
src/db/schema.ts(37,14): error TS7022: 'customers' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
||||
src/db/schema.ts(45,59): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
||||
src/db/schema.ts(49,14): error TS7022: 'projects' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
||||
src/db/schema.ts(53,56): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
||||
src/index.ts(27,25): error TS2769: No overload matches this call.
|
||||
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
|
||||
|
||||
20
apps/web/src/components/ScrollArea.tsx
Normal file
20
apps/web/src/components/ScrollArea.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import React, { ReactNode } from 'react';
|
||||
|
||||
interface ScrollAreaProps {
|
||||
maxHeight?: string;
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const ScrollArea = ({ maxHeight = 'none', children, className = '' }: ScrollAreaProps) => {
|
||||
return (
|
||||
<div
|
||||
className={`overflow-y-auto scrollbar-thin scrollbar-thumb-zinc-400 scrollbar-track-transparent ${className}`}
|
||||
style={{ maxHeight }}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default ScrollArea;
|
||||
Loading…
Reference in New Issue
Block a user