chore: remove unused component

This commit is contained in:
EnixCoda 2020-01-29 18:49:43 +08:00
parent cdca3ba4db
commit 667831888b
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -1,14 +0,0 @@
import * as React from 'react'
import * as DOMHelper from 'utils/DOMHelper'
type Props<P> = {
to: string
children: React.ReactElement<P>
}
export function PJAXLink<P>({ to, children }: Props<P>) {
return React.cloneElement(children, {
...children.props,
onClick: () => DOMHelper.loadWithPJAX(to),
})
}