display country flag along with item name
This commit is contained in:
parent
eb182a210f
commit
4ebec43bdd
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,8 @@
|
||||
node_modules/
|
||||
*/node_modules/
|
||||
*/build/
|
||||
|
||||
**/node_modules/
|
||||
**/build/
|
||||
.DS_Store
|
||||
.env
|
||||
File diff suppressed because one or more lines are too long
1
frontend/json/runtimeError.json
Normal file
1
frontend/json/runtimeError.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
@ -3,6 +3,8 @@ import Link from 'next/link';
|
||||
import moment from 'moment';
|
||||
import ListActionsPopover from '../ListActionsPopover';
|
||||
import { DragSourceMonitor, useDrag } from 'react-dnd';
|
||||
import countryFlags from './countryFlags';
|
||||
|
||||
|
||||
type Props = {
|
||||
item: any;
|
||||
@ -42,6 +44,7 @@ const KanbanCard = ({
|
||||
href={`/${entityName}/${entityName}-view/?id=${item.id}`}
|
||||
className={'text-base font-semibold'}
|
||||
>
|
||||
{countryFlags[item.country] ? `${countryFlags[item.country]} ` : ''}
|
||||
{item[showFieldName] ?? 'No data'}
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
31
frontend/src/components/KanbanBoard/countryFlags.ts
Normal file
31
frontend/src/components/KanbanBoard/countryFlags.ts
Normal file
@ -0,0 +1,31 @@
|
||||
const countryFlags: { [key: string]: string } = {
|
||||
Germany: '๐ฉ๐ช',
|
||||
France: '๐ซ๐ท',
|
||||
Spain: '๐ช๐ธ',
|
||||
Italy: '๐ฎ๐น',
|
||||
Netherlands: '๐ณ๐ฑ',
|
||||
Belgium: '๐ง๐ช',
|
||||
Sweden: '๐ธ๐ช',
|
||||
Poland: '๐ต๐ฑ',
|
||||
Romania: '๐ท๐ด',
|
||||
|
||||
Portugal: '๐ต๐น',
|
||||
Ireland: '๐ฎ๐ช',
|
||||
Greece: '๐ฌ๐ท',
|
||||
'Czech Republic': '๐จ๐ฟ',
|
||||
USA: '๐บ๐ธ',
|
||||
UK: '๐ฌ๐ง',
|
||||
|
||||
'United Kingdom': '๐ฌ๐ง',
|
||||
'United States': '๐บ๐ธ',
|
||||
Canada: '๐จ๐ฆ',
|
||||
Australia: '๐ฆ๐บ',
|
||||
Brazil: '๐ง๐ท',
|
||||
Argentina: '๐ฆ๐ท',
|
||||
Mexico: '๐ฒ๐ฝ',
|
||||
Chile: '๐จ๐ฑ',
|
||||
India: '๐ฎ๐ณ',
|
||||
Pakistan: '๐ต๐ฐ',
|
||||
};
|
||||
|
||||
export default countryFlags;
|
||||
Loadingโฆ
x
Reference in New Issue
Block a user