manalinks: fix focus
This commit is contained in:
parent
164d9ef079
commit
96c0876053
|
@ -1,16 +1,18 @@
|
||||||
|
import { useState } from 'react'
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
|
import { QrcodeIcon } from '@heroicons/react/outline'
|
||||||
|
import { DotsHorizontalIcon } from '@heroicons/react/solid'
|
||||||
|
|
||||||
import { formatMoney } from 'common/util/format'
|
import { formatMoney } from 'common/util/format'
|
||||||
import { fromNow } from 'web/lib/util/time'
|
import { fromNow } from 'web/lib/util/time'
|
||||||
import { Col } from 'web/components/layout/col'
|
import { Col } from 'web/components/layout/col'
|
||||||
import { Row } from 'web/components/layout/row'
|
import { Row } from 'web/components/layout/row'
|
||||||
import { Claim, Manalink } from 'common/manalink'
|
import { Claim, Manalink } from 'common/manalink'
|
||||||
import { useState } from 'react'
|
|
||||||
import { ShareIconButton } from './share-icon-button'
|
import { ShareIconButton } from './share-icon-button'
|
||||||
import { DotsHorizontalIcon } from '@heroicons/react/solid'
|
|
||||||
import { contractDetailsButtonClassName } from './contract/contract-info-dialog'
|
import { contractDetailsButtonClassName } from './contract/contract-info-dialog'
|
||||||
import { useUserById } from 'web/hooks/use-user'
|
import { useUserById } from 'web/hooks/use-user'
|
||||||
import getManalinkUrl from 'web/get-manalink-url'
|
import getManalinkUrl from 'web/get-manalink-url'
|
||||||
import { QrcodeIcon } from '@heroicons/react/outline'
|
|
||||||
export type ManalinkInfo = {
|
export type ManalinkInfo = {
|
||||||
expiresTime: number | null
|
expiresTime: number | null
|
||||||
maxUses: number | null
|
maxUses: number | null
|
||||||
|
@ -133,12 +135,7 @@ export function ManalinkCardFromView(props: {
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={() => (window.location.href = qrUrl)}
|
onClick={() => (window.location.href = qrUrl)}
|
||||||
className={clsx(
|
className={clsx(contractDetailsButtonClassName)}
|
||||||
contractDetailsButtonClassName,
|
|
||||||
showDetails
|
|
||||||
? 'bg-gray-200 text-gray-600 hover:bg-gray-200 hover:text-gray-600'
|
|
||||||
: ''
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
<QrcodeIcon className="h-6 w-6" />
|
<QrcodeIcon className="h-6 w-6" />
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user