From eb5248d8d14f07d9efca72236b7f582e8f4f9573 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Sat, 28 May 2022 19:13:54 +0900
Subject: [PATCH 01/81] docs: add sambartik as a contributor for code (#2783)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
---
.all-contributorsrc | 9 +++++++++
README.md | 3 ++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index a230a4685..da00cf331 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -665,6 +665,15 @@
"contributions": [
"translation"
]
+ },
+ {
+ "login": "sambartik",
+ "name": "Samuel Bartík",
+ "avatar_url": "https://avatars.githubusercontent.com/u/63553146?v=4",
+ "profile": "https://github.com/sambartik",
+ "contributions": [
+ "code"
+ ]
}
],
"badgeTemplate": "-orange.svg\"/>",
diff --git a/README.md b/README.md
index 6bca69eb0..7e9c7cee7 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@
-
+
{msg};
- },
+ code: (msg: React.ReactNode) => (
+ {msg}
+ ),
})}
diff --git a/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx b/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx
index 1aa631c97..c6ec8432e 100644
--- a/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx
+++ b/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx
@@ -28,7 +28,7 @@ const messages = defineMessages({
validationTypes: 'You must select at least one notification type',
});
-const NotificationsPushbullet: React.FC = () => {
+const NotificationsPushbullet = () => {
const intl = useIntl();
const { addToast, removeToast } = useToasts();
const [isTesting, setIsTesting] = useState(false);
@@ -154,20 +154,16 @@ const NotificationsPushbullet: React.FC = () => {
*
{intl.formatMessage(messages.accessTokenTip, {
- PushbulletSettingsLink: function PushbulletSettingsLink(
- msg
- ) {
- return (
-
- {msg}
-
- );
- },
+ PushbulletSettingsLink: (msg: React.ReactNode) => (
+
+ {msg}
+
+ ),
})}
@@ -180,9 +176,11 @@ const NotificationsPushbullet: React.FC = () => {
autoComplete="one-time-code"
/>
{msg};
- },
+ CreateBotLink: (msg: React.ReactNode) => (
+
+ {msg}
+
+ ),
+ GetIdBotLink: (msg: React.ReactNode) => (
+
+ {msg}
+
+ ),
+ code: (msg: React.ReactNode) => (
+ {msg}
+ ),
})}
@@ -218,9 +214,11 @@ const NotificationsTelegram: React.FC = () => {
autoComplete="one-time-code"
/>
- {errors.botAPI && touched.botAPI && (
- {msg};
- },
+ GetIdBotLink: (msg: React.ReactNode) => (
+
+ {msg}
+
+ ),
+ code: (msg: React.ReactNode) => {msg},
})}
@@ -266,9 +262,11 @@ const NotificationsTelegram: React.FC = () => {
develop branch of Overseerr, which is only recommended for those contributing to development or assisting with bleeding-edge testing.',
});
-const SettingsAbout: React.FC = () => {
+const SettingsAbout = () => {
const intl = useIntl();
const { data, error } = useSWR{msg}
+ ),
})}
/>
)}
diff --git a/src/components/Settings/SettingsJobsCache/index.tsx b/src/components/Settings/SettingsJobsCache/index.tsx
index 38403a16b..eaaf57934 100644
--- a/src/components/Settings/SettingsJobsCache/index.tsx
+++ b/src/components/Settings/SettingsJobsCache/index.tsx
@@ -70,7 +70,7 @@ interface Job {
running: boolean;
}
-const SettingsJobs: React.FC = () => {
+const SettingsJobs = () => {
const intl = useIntl();
const { addToast } = useToasts();
const {
diff --git a/src/components/Settings/SettingsLayout.tsx b/src/components/Settings/SettingsLayout.tsx
index 4a366cbc5..f5bdb6f3e 100644
--- a/src/components/Settings/SettingsLayout.tsx
+++ b/src/components/Settings/SettingsLayout.tsx
@@ -16,7 +16,11 @@ const messages = defineMessages({
menuAbout: 'About',
});
-const SettingsLayout: React.FC = ({ children }) => {
+type SettingsLayoutProps = {
+ children: React.ReactNode;
+};
+
+const SettingsLayout = ({ children }: SettingsLayoutProps) => {
const intl = useIntl();
const settingsRoutes: SettingsRoute[] = [
diff --git a/src/components/Settings/SettingsLogs/index.tsx b/src/components/Settings/SettingsLogs/index.tsx
index a42bb820b..412941771 100644
--- a/src/components/Settings/SettingsLogs/index.tsx
+++ b/src/components/Settings/SettingsLogs/index.tsx
@@ -51,7 +51,7 @@ const messages = defineMessages({
type Filter = 'debug' | 'info' | 'warn' | 'error';
-const SettingsLogs: React.FC = () => {
+const SettingsLogs = () => {
const router = useRouter();
const intl = useIntl();
const { addToast } = useToasts();
@@ -232,9 +232,9 @@ const SettingsLogs: React.FC = () => {
{intl.formatMessage(messages.logsDescription, {
- code: function code(msg) {
- return {msg};
- },
+ code: (msg: React.ReactNode) => (
+ {msg}
+ ),
appDataPath: appData ? appData.appDataPath : '/app/config',
})}
{msg};
- },
+ TelegramBotLink: (msg: React.ReactNode) => (
+
+ {msg}
+
+ ),
+ GetIdBotLink: (msg: React.ReactNode) => (
+
+ {msg}
+
+ ),
+ code: (msg: React.ReactNode) => {msg},
})}
)}
@@ -149,9 +143,11 @@ const UserTelegramSettings: React.FC = () => {
type="text"
/>
- {errors.telegramChatId && touched.telegramChatId && (
-