mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
feat(invoice): add branch & warehouse schema.
This commit is contained in:
20
src/components/Tags/FlagTag.js
Normal file
20
src/components/Tags/FlagTag.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
export const FlagTag = ({ flage }) => {
|
||||
return (
|
||||
<React.Fragment>
|
||||
<Img
|
||||
alt="flag"
|
||||
src={`https://cdn.jsdelivr.net/gh/madebybowtie/FlagKit@2.2/Assets/SVG/${flage}.svg`}
|
||||
/>
|
||||
</React.Fragment>
|
||||
);
|
||||
};
|
||||
|
||||
const Img = styled.img`
|
||||
display: inline-block;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
margin: 0 5px;
|
||||
`;
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
|
||||
export * from './CurrencyTag';
|
||||
export * from './CurrencyTag';
|
||||
export * from './FlagTag'
|
||||
Reference in New Issue
Block a user