summaryrefslogtreecommitdiff
path: root/src/components/about
diff options
context:
space:
mode:
authorHaishan <[email protected]>2022-06-06 23:39:56 +0800
committerHaishan <[email protected]>2022-06-06 23:39:56 +0800
commit78f3434cb52f53c66936de278f0828c19ef63666 (patch)
treee7f9685cc0f3d8eaa6a94ad330e8876752ecb276 /src/components/about
parent23e734aa548354bb7ceff5ad8d85de95cd860a55 (diff)
Run prettier
Diffstat (limited to 'src/components/about')
-rw-r--r--src/components/about/About.tsx29
1 files changed, 4 insertions, 25 deletions
diff --git a/src/components/about/About.tsx b/src/components/about/About.tsx
index 6ed01ad..f59ce20 100644
--- a/src/components/about/About.tsx
+++ b/src/components/about/About.tsx
@@ -11,15 +11,7 @@ import s from './About.module.scss';
type Props = { apiConfig: ClashAPIConfig };
-function Version({
- name,
- link,
- version,
-}: {
- name: string;
- link: string;
- version: string;
-}) {
+function Version({ name, link, version }: { name: string; link: string; version: string }) {
return (
<div className={s.root}>
<h2>{name}</h2>
@@ -28,12 +20,7 @@ function Version({
<span className={s.mono}>{version}</span>
</p>
<p>
- <a
- className={s.link}
- href={link}
- target="_blank"
- rel="noopener noreferrer"
- >
+ <a className={s.link} href={link} target="_blank" rel="noopener noreferrer">
<GitHub size={20} />
<span>Source</span>
</a>
@@ -50,17 +37,9 @@ function AboutImpl(props: Props) {
<>
<ContentHeader title="About" />
{version && version.version ? (
- <Version
- name="Clash"
- version={version.version}
- link="https://github.com/Dreamacro/clash"
- />
+ <Version name="Clash" version={version.version} link="https://github.com/Dreamacro/clash" />
) : null}
- <Version
- name="Yacd"
- version={__VERSION__}
- link="https://github.com/haishanh/yacd"
- />
+ <Version name="Yacd" version={__VERSION__} link="https://github.com/haishanh/yacd" />
</>
);
}