Skip to content

Commit dfedbce

Browse files
committed
Fix naming convention
1 parent 5b1ad54 commit dfedbce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

assets/scripts/components/layout/Navbar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const Navbar: React.FC<{ projectData: ProjectDetailResultType }> = ({ projectDat
181181
}
182182
}, [isOpen, isMobile]);
183183

184-
const renderMenuItems = (items: MenuItem[]) => (
184+
const MenuItems = (items: MenuItem[]) => (
185185
<SubMenuList>
186186
{items.map(item => (
187187
<SubMenu
@@ -207,7 +207,7 @@ const Navbar: React.FC<{ projectData: ProjectDetailResultType }> = ({ projectDat
207207
</SubMenuList>
208208
);
209209

210-
const renderDownloadItems = () => (
210+
const DownloadItems = () => (
211211
<DownloadLink
212212
to={urls.downloads}
213213
className="fr-btn fr-btn--icon-left fr-icon-download-line"
@@ -242,13 +242,13 @@ const Navbar: React.FC<{ projectData: ProjectDetailResultType }> = ({ projectDat
242242
{menu.label}
243243
</MenuTitle>
244244
)}
245-
{menu.subMenu && renderMenuItems(menu.subMenu)}
245+
{menu.subMenu && MenuItems(menu.subMenu)}
246246
</Menu>
247247
))}
248248
</MenuList>
249249
</NavContainer>
250250
{shouldDisplayDownloads && urls.downloads && (
251-
renderDownloadItems()
251+
DownloadItems()
252252
)}
253253
</Container>
254254
</>

0 commit comments

Comments
 (0)