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 {EventAction} from "../api";
|
||||
import {EventAction} from '../api'
|
||||
import {
|
||||
ClockCircleOutlined,
|
||||
DeleteOutlined,
|
||||
@@ -9,20 +9,31 @@ import {
|
||||
SignatureOutlined,
|
||||
SyncOutlined,
|
||||
UnlockOutlined
|
||||
} from "@ant-design/icons";
|
||||
import React from "react";
|
||||
} from '@ant-design/icons'
|
||||
import React from 'react'
|
||||
|
||||
export const actionToIcon = (a: EventAction) => a === 'registration' ?
|
||||
<SignatureOutlined style={{fontSize: '16px'}}/> : a === 'expiration' ?
|
||||
<ClockCircleOutlined style={{fontSize: '16px'}}/> : a === 'transfer' ?
|
||||
<ShareAltOutlined style={{fontSize: '16px'}}/> : a === 'last changed' ?
|
||||
<SyncOutlined style={{fontSize: '16px'}}/> : a === 'deletion' ?
|
||||
<DeleteOutlined style={{fontSize: '16px'}}/> : a === 'reregistration' ?
|
||||
<ReloadOutlined style={{fontSize: '16px'}}/> : a === 'locked' ?
|
||||
<LockOutlined style={{fontSize: '16px'}}/> : a === 'unlocked' ?
|
||||
<UnlockOutlined style={{fontSize: '16px'}}/> : a === 'registrar expiration' ?
|
||||
<ClockCircleOutlined
|
||||
style={{fontSize: '16px'}}/> : a === 'enum validation expiration' ?
|
||||
<ClockCircleOutlined style={{fontSize: '16px'}}/> : a === 'reinstantiation' ?
|
||||
<ReloadOutlined style={{fontSize: '16px'}}/> :
|
||||
<PushpinOutlined style={{fontSize: '16px'}}/>
|
||||
export const actionToIcon = (a: EventAction) => a === 'registration'
|
||||
? <SignatureOutlined style={{fontSize: '16px'}}/>
|
||||
: a === 'expiration'
|
||||
? <ClockCircleOutlined style={{fontSize: '16px'}}/>
|
||||
: a === 'transfer'
|
||||
? <ShareAltOutlined style={{fontSize: '16px'}}/>
|
||||
: a === 'last changed'
|
||||
? <SyncOutlined style={{fontSize: '16px'}}/>
|
||||
: a === 'deletion'
|
||||
? <DeleteOutlined style={{fontSize: '16px'}}/>
|
||||
: a === 'reregistration'
|
||||
? <ReloadOutlined style={{fontSize: '16px'}}/>
|
||||
: a === 'locked'
|
||||
? <LockOutlined style={{fontSize: '16px'}}/>
|
||||
: a === 'unlocked'
|
||||
? <UnlockOutlined style={{fontSize: '16px'}}/>
|
||||
: a === 'registrar expiration'
|
||||
? <ClockCircleOutlined
|
||||
style={{fontSize: '16px'}}
|
||||
/>
|
||||
: a === 'enum validation expiration'
|
||||
? <ClockCircleOutlined style={{fontSize: '16px'}}/>
|
||||
: a === 'reinstantiation'
|
||||
? <ReloadOutlined style={{fontSize: '16px'}}/>
|
||||
: <PushpinOutlined style={{fontSize: '16px'}}/>
|
||||
|
||||
Reference in New Issue
Block a user