mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-05-04 02:32:58 +03:00
Extract shlink-web-component outside of src folder
This commit is contained in:
parent
768fb1992f
commit
3a0cea1268
230 changed files with 485 additions and 524 deletions
src/shlink-web-component/short-urls/helpers/qr-codes
|
@ -1,16 +0,0 @@
|
|||
import type { FC } from 'react';
|
||||
import { DropdownItem } from 'reactstrap';
|
||||
import { DropdownBtn } from '../../../../utils/DropdownBtn';
|
||||
import type { QrCodeFormat } from '../../../../utils/helpers/qrCodes';
|
||||
|
||||
interface QrFormatDropdownProps {
|
||||
format: QrCodeFormat;
|
||||
setFormat: (format: QrCodeFormat) => void;
|
||||
}
|
||||
|
||||
export const QrFormatDropdown: FC<QrFormatDropdownProps> = ({ format, setFormat }) => (
|
||||
<DropdownBtn text={`Format (${format})`}>
|
||||
<DropdownItem active={format === 'png'} onClick={() => setFormat('png')}>PNG</DropdownItem>
|
||||
<DropdownItem active={format === 'svg'} onClick={() => setFormat('svg')}>SVG</DropdownItem>
|
||||
</DropdownBtn>
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue