mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2026-04-02 20:35:22 +00:00
settings
This commit is contained in:
@@ -1,21 +1,6 @@
|
||||
import React, { useCallback } from 'react'
|
||||
import { shell } from 'electron'
|
||||
|
||||
const Link: React.FC<{ text: string; link: string }> = ({ text, link }) => {
|
||||
const fn = useCallback(
|
||||
(e: any) => {
|
||||
e.preventDefault()
|
||||
shell.openExternal(link)
|
||||
},
|
||||
[link]
|
||||
)
|
||||
return (
|
||||
<a onClick={fn} href={link}>
|
||||
{' '}
|
||||
{text}{' '}
|
||||
</a>
|
||||
)
|
||||
}
|
||||
import Link from './ExternalLink'
|
||||
|
||||
const About: React.FC = () => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user