Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 90c6127

Browse files
committed
Preview todo article
1 parent 921f9a5 commit 90c6127

File tree

2 files changed

+42
-43
lines changed

2 files changed

+42
-43
lines changed

src/lib/articles.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { DateTime } from 'luxon'
22

33
export const articleKeys: ReadonlyArray<keyof typeof articlesData> = [
4-
'todo',
54
'generics'
65
]
76

src/pages/todo.tsx

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -534,48 +534,48 @@ const Page = () => (
534534
</>
535535
)
536536
},
537-
{
538-
title: (
539-
<>
540-
<Code>readonly</Code>
541-
</>
542-
),
543-
content: (
544-
<>
545-
<P>Little Duckling tried to refactor the code…</P>
546-
</>
547-
)
548-
},
549-
{
550-
title: (
551-
<>
552-
kind of like unit tests; especially useful for data → data
553-
validation, also useful for passing data from a component to another
554-
component.
555-
</>
556-
),
557-
content: <></>
558-
},
559-
{
560-
title: <>Mark all as completed</>,
561-
content: (
562-
<>
563-
<TodoWithData
564-
showData
565-
caption={
566-
<>
567-
↓ Try pressing <Highlight>“Mark all as completed”</Highlight>
568-
</>
569-
}
570-
defaultData={[
571-
{ id: 1, text: 'First todo', done: false },
572-
{ id: 2, text: 'Second todo', done: false }
573-
]}
574-
showMarkAllAsCompleted
575-
/>
576-
</>
577-
)
578-
},
537+
// {
538+
// title: (
539+
// <>
540+
// <Code>readonly</Code>
541+
// </>
542+
// ),
543+
// content: (
544+
// <>
545+
// <P>Little Duckling tried to refactor the code…</P>
546+
// </>
547+
// )
548+
// },
549+
// {
550+
// title: (
551+
// <>
552+
// kind of like unit tests; especially useful for data → data
553+
// validation, also useful for passing data from a component to another
554+
// component.
555+
// </>
556+
// ),
557+
// content: <></>
558+
// },
559+
// {
560+
// title: <>Mark all as completed</>,
561+
// content: (
562+
// <>
563+
// <TodoWithData
564+
// showData
565+
// caption={
566+
// <>
567+
// ↓ Try pressing <Highlight>“Mark all as completed”</Highlight>
568+
// </>
569+
// }
570+
// defaultData={[
571+
// { id: 1, text: 'First todo', done: false },
572+
// { id: 2, text: 'Second todo', done: false }
573+
// ]}
574+
// showMarkAllAsCompleted
575+
// />
576+
// </>
577+
// )
578+
// },
579579
underConstructionCard
580580
]}
581581
/>

0 commit comments

Comments
 (0)