Skip to content

Commit

Permalink
[FIX] minor errors (#53)
Browse files Browse the repository at this point in the history
* component::Discourserankedlist: add key prop to each column

Signed-off-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>

* component::Menubar: rename class attr to className

Signed-off-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
  • Loading branch information
debdutdeb committed Jan 25, 2022
1 parent 2be69ef commit 25215e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/components/discourserankedlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ function Discourserankedlist(props) {
<Col
className={`${styles.container} d-flex flex-wrap justify-content-center`}
>
{Data.map((item) => (
{Data.map(item => (
<Col
key={item.id}
href={item.link}
className={`${
styles.coloumn
Expand Down
6 changes: 3 additions & 3 deletions app/components/menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function Menubar(props) {
const [collapsed, setCollapsed] = useState(true);

return (
<Container fluid class='border-bottom '>
<Container fluid className='border-bottom '>
<Navbar expand='lg' className=' bg-white mx-4 my-2'>
<BrandLogo
brandLink={'#home'}
Expand Down Expand Up @@ -42,13 +42,13 @@ export default function Menubar(props) {
</Navbar.Toggle>
<Navbar.Collapse id='basic-navbar-nav'>
<Nav className='mx-auto'>
{props.menu?.body?.map((item) => {
{props.menu?.body?.map(item => {
return item.sub_menus ? (
<NavDropdown
title={item.label}
className={`ml-4 fw-light ${styles.navbarItem}`}
>
{item.sub_menus.map((sub) => (
{item.sub_menus.map(sub => (
<NavDropdown.Item
href={sub.url}
className={['dropdown-toggle']}
Expand Down

0 comments on commit 25215e3

Please sign in to comment.