File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11import { useState } from 'react' ;
2+
3+ import Section from './Section' ;
24import TabButton from './TabButton' ;
35
46import { EXAMPLES } from '../data/examples' ;
@@ -25,8 +27,7 @@ export default function Examples() {
2527 }
2628
2729 return (
28- < section id = "examples" >
29- < h2 > Examples</ h2 >
30+ < Section id = "examples" title = "Examples" >
3031 < menu >
3132 < TabButton
3233 isSelected = { selectedTopic === 'components' }
@@ -54,6 +55,6 @@ export default function Examples() {
5455 </ TabButton >
5556 </ menu >
5657 { tabContent }
57- </ section >
58+ </ Section >
5859 ) ;
5960}
Original file line number Diff line number Diff line change 1+ export default function Section ( { children, title } ) {
2+ return (
3+ < section >
4+ < h2 > { title } </ h2 >
5+ { children }
6+ </ section >
7+ ) ;
8+ }
You can’t perform that action at this time.
0 commit comments