containers / containers/podman.io
[Bug]: TypeScript typecheck fails in PlayOnScroll and CommunityMeetingsCardGrid
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 188
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 12
Description
yarn typecheck at the moment doesn't pass due to TypeScript errors in two components.
1. PlayOnScroll
File:
src/components/utilities/PlayOnScroll/index.tsx
PlayOnScroll is defined as React.FC instead of using the current VideoProps type. This leads TypeScript to assume that the component does not take any props.
It results in the following errors in:
src/pages/features.tsx
for vidFormat, url, posterImg, and styles.
2. CommunityMeetingsCardGrid
File:
src/components/layout/CommunityMeetingsCardGrid/index.tsx
The logic for rendering markdown tries to access child.props after typing child as object. TypeScript complains that there is no props property on type object.
It breaks the parsing logic for extracting community meeting recording URLs.
Both problems block the repository from passing yarn typecheck
### LLM Policy
- [x] This issue is human-written, and folow up comments will also be human-written
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with src/components/utilities/PlayOnScroll/index.tsx and src/components/layout/CommunityMeetingsCardGrid/index.tsx, then run yarn typecheck to reproduce the reported errors. Check the usage in src/pages/features.tsx and the markdown child handling, and consider the issue complete when both components typecheck without breaking community meeting URL parsing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100