chore: rename section dropdown group to section dropdown option

This commit is contained in:
Stevan Freeborn
2023-04-27 06:25:29 -05:00
parent 38212dcde9
commit 6dc5c67d8b
+5 -2
View File
@@ -2,7 +2,7 @@ import { Fragment } from 'react';
import { Doc, DocsStructure } from '../types/types'; import { Doc, DocsStructure } from '../types/types';
import styles from './SectionDropdown.module.css'; import styles from './SectionDropdown.module.css';
function SectionDropdownGroup({ doc }: { doc: Doc }) { function SectionDropdownOption({ doc }: { doc: Doc }) {
return ( return (
<Fragment> <Fragment>
{doc.copy && doc.example && ( {doc.copy && doc.example && (
@@ -50,7 +50,10 @@ export default function SectionDropdown({
> >
{version.docs.map(doc => { {version.docs.map(doc => {
return ( return (
<SectionDropdownGroup doc={doc} key={doc.title} /> <SectionDropdownOption
doc={doc}
key={doc.title}
/>
); );
})} })}
</select> </select>