-
{t('title.yourNotifiers')}
-
- {t('info.otherNotifiersNotShown')}
+ registering ? (
+
-
- {registrations.map(({ id, guild, channel }) => (
-
+
+
- {!!guild.iconHash && (
-
- )}
-
-
- {/* eslint-disable-next-line i18next/no-literal-string */}
- {guild.name} • #{channel.name}
-
-
-
-
+
+
+
+
+
+
{t('info.addDiscordNotifierRedirectInstructions')}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- onDelete(id)}
- variant="ghost"
+
+
+
+
+
+
+
+
- ))}
-
- >
+
+
+
+
+
+
+
+ ) : finishingRegistration ? (
+ <>
+
+ {t('info.discordNotifierFinishSetupExplanation')}
+
+
+
+
+
+
+ >
+ ) : (
+ <>
+
+ {t('info.discordNotifierBeginSetupExplanation')}
+
+
+
+ >
+ )
+ ) : (
+
)}
+
+ {!registering &&
+ !finishingRegistration &&
+ (registrations.length > 0 || refreshing) && (
+ <>
+
+
{t('title.yourNotifiers')}
+
+ {t('info.otherNotifiersNotShown')}
+
+
+
+
+ {registrations.map(({ id, guild, channel }) => (
+
+ {!!guild.iconHash && (
+
+ )}
+
+
+ {/* eslint-disable-next-line i18next/no-literal-string */}
+ {guild.name} • #{channel.name}
+
+
+
+
+ onDelete(id)}
+ variant="ghost"
+ />
+
+
+ ))}
+
+
+ {refreshing &&
}
+ >
+ )}
)
}