[Doc] Error example code in CN doc
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 92/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- documentation
Research direction
Read website/zh-CN/component/list.md and compare its List section examples with website/component/list.md. Replace the incorrect TableState references with ListState in the Chinese source; done when the examples match the English source on this point.
Written by the indexing model from the issue text.
Description
All the examples in the List section use TableState in CN doc.
fn render_item(
&mut self,
ix: IndexPath,
_window: &mut Window,
_cx: &mut Context<TableState<Self>>,
) -> Option<Self::Item> {
self.items.get(ix.row).map(|item| {
ListItem::new(ix)
.child(Label::new(item.clone()))
.selected(Some(ix) == self.selected_index)
})
}
But correct is ListState in EN doc.
Page: https://gpui-kit.com/zh-CN/component/list/
Source: https://github.com/longbridge/gpui-kit/blob/main/website/zh-CN/component/list.md
English source for comparison (correct): https://github.com/longbridge/gpui-kit/blob/main/website/component/list.md
- Dominant language
- Rust
- Stars
- 20.8k
- Forks
- 1.3k
- Avg merge
- 1d 16m
- Merged PRs (30d)
- 270
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from longbridge/gpui-kit
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
longbridge/gpui-kit#4031 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
longbridge/gpui-kit#3852 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
longbridge/gpui-kit#3795 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
longbridge/gpui-kit#3630 · 1 comment ·
Maintainers usually reply within 1 day
-
input: allow Editor as the control of an InputGroupMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
longbridge/gpui-kit#3620 ·
Maintainers usually reply within 1 day
All issues in longbridge/gpui-kit
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
DioxusLabs/dioxus#6095 ·
Maintainers usually reply within 1 day
-
bug engine
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
rocky-data/rocky#2689 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
open-telemetry/weaver#1917 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug host P3 web
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jphacks/kz_2613#589 · 1 comment ·
Maintainers usually reply within 1 day