Skip to content

Commit

Permalink
feat(UserLabel): add link to tap user info
Browse files Browse the repository at this point in the history
  • Loading branch information
NotEvenANeko authored and github-actions[bot] committed Sep 8, 2023
1 parent dbc3568 commit 8943208
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config.webapp.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import React from 'react'

import { setConfig } from './modules/config'

// Used in CustomerServiceStats.
// 0/-1/-2/...: a week ends at 23:59:59 Sunday/Saturday/Friday/...
setConfig('stats.offsetDays', 0)

setConfig('weekendWarning.enabled', true)

setConfig('ticket.metadata.customMetadata.userLabelOverlay', {
overlay: ({ user }) => (
<a href={`https://www.taptap.com/admin/user/edit/${user.username}`} target="__blank">
TapTap 用户信息
</a>
),
})

0 comments on commit 8943208

Please sign in to comment.