mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: remove unused component
This commit is contained in:
parent
cdca3ba4db
commit
667831888b
1 changed files with 0 additions and 14 deletions
|
|
@ -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),
|
||||
})
|
||||
}
|
||||
Loading…
Reference in a new issue