Skip to content

Commit

Permalink
chore: dropdown restyling
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Jun 30, 2024
1 parent 2ccb984 commit 9bd46f7
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable jsx-a11y/label-has-associated-control */
import React, { useState, useEffect, useRef, useContext, useReducer } from 'react'
import Dropdown from 'react-bootstrap/NavDropdown'
import Dropdown from 'react-bootstrap/Dropdown'
import { DotType, CornerSquareType, CornerDotType, ShapeType } from '@liquid-js/qr-code-styling'
import { AppContext } from './Context'
import Header from './Components/Header'
Expand Down Expand Up @@ -589,18 +589,22 @@ function App() {
<div className='form-text'>Or use an intermal logo.</div>
<div className='col-sm-12'>
<Dropdown title='Internal logo' id='collapsible-dropdown'>
{embeddedLogos.map((logo) => (
<Dropdown.Item onClick={handleInternalLogo(logo.path)}>
<img
src={logo.path}
width='30'
className='d-inline-block align-top me-2'
alt='React Bootstrap logo'
/>
{logo.label}
</Dropdown.Item>
))}

<Dropdown.Toggle className='col-sm-12 text-start' variant="secondary" id='dropdown-basic'>
Internal logo
</Dropdown.Toggle>
<Dropdown.Menu>
{embeddedLogos.map((logo) => (
<Dropdown.Item onClick={handleInternalLogo(logo.path)}>
<img
src={logo.path}
width='30'
className='d-inline-block align-top me-2'
alt='React Bootstrap logo'
/>
{logo.label}
</Dropdown.Item>
))}
</Dropdown.Menu>
</Dropdown>
</div>
</div>
Expand Down

0 comments on commit 9bd46f7

Please sign in to comment.