mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add eslint linter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Avatar} from "antd";
|
||||
import {Avatar} from 'antd'
|
||||
import {
|
||||
BankOutlined,
|
||||
DollarOutlined,
|
||||
@@ -6,20 +6,22 @@ import {
|
||||
SignatureOutlined,
|
||||
ToolOutlined,
|
||||
UserOutlined
|
||||
} from "@ant-design/icons";
|
||||
import React from "react";
|
||||
} from '@ant-design/icons'
|
||||
import React from 'react'
|
||||
|
||||
import {rolesToColor} from "./rolesToColor";
|
||||
import {rolesToColor} from './rolesToColor'
|
||||
|
||||
export const roleToAvatar = (e: { roles: string[] }) => <Avatar style={{backgroundColor: rolesToColor(e.roles)}}
|
||||
icon={e.roles.includes('registrant') ?
|
||||
<SignatureOutlined/> :
|
||||
e.roles.includes('registrar') ?
|
||||
<BankOutlined/> :
|
||||
e.roles.includes('administrative') ?
|
||||
<IdcardOutlined/> :
|
||||
e.roles.includes('technical') ?
|
||||
<ToolOutlined/> :
|
||||
e.roles.includes('billing') ?
|
||||
<DollarOutlined/> :
|
||||
<UserOutlined/>}/>
|
||||
export const roleToAvatar = (e: { roles: string[] }) => <Avatar
|
||||
style={{backgroundColor: rolesToColor(e.roles)}}
|
||||
icon={e.roles.includes('registrant')
|
||||
? <SignatureOutlined/>
|
||||
: e.roles.includes('registrar')
|
||||
? <BankOutlined/>
|
||||
: e.roles.includes('administrative')
|
||||
? <IdcardOutlined/>
|
||||
: e.roles.includes('technical')
|
||||
? <ToolOutlined/>
|
||||
: e.roles.includes('billing')
|
||||
? <DollarOutlined/>
|
||||
: <UserOutlined/>}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user