Add refresh buttons to these pages
This commit is contained in:
17
src/app/components/ReloadButton.tsx
Normal file
17
src/app/components/ReloadButton.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { faArrowsRotate } from '@fortawesome/free-solid-svg-icons'
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
|
||||
export function ReloadButton ({ action }: { action: () => void }) {
|
||||
return (
|
||||
<>
|
||||
<div className='relative'>
|
||||
<button
|
||||
className='top-button absolute -top-4 -right-4'
|
||||
onClick={action}
|
||||
>
|
||||
<FontAwesomeIcon icon={faArrowsRotate} />
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user