diff --git a/README.md b/README.md index 10fdaf2..72677f7 100755 --- a/README.md +++ b/README.md @@ -65,9 +65,7 @@ You can set yourself as an administrator by chaing the "role" column to "admin" | DATABASE_URL | Connection String | mysql://USER:PASSWORD@127.0.0.1:3306/DATABASE | | IRON_SECRET | Secret for Iron to encrypt the cookie | stringwithatleast64chars | | DISCORD_CLIENT_ID | Discord Client ID | | -| DISCORD_CLIENT_SECRET | Discord Client Secret | | -| TWITTER_API_KEY | Twitter API Key | | -| TWITTER_API_SECRET_KEY | Twitter API Secret Key | | +| DISCORD_CLIENT_SECRET | Discord Client Secret | | | WEBPACK_ANALYZE | Runs Webpack Analyzer on start | true | | NEXT_PUBLIC_LOGGING_LEVEL | Logging Level | TRACE, DEBUG, INFO, WARNING, ERROR or CRITICAL | | NEXT_PUBLIC_STAGING | If the instance is a staging instance where data may be deleted | true | diff --git a/src/components/account/OAuthAccountsCard.jsx b/src/components/account/OAuthAccountsCard.jsx index cc8ac21..c941c62 100755 --- a/src/components/account/OAuthAccountsCard.jsx +++ b/src/components/account/OAuthAccountsCard.jsx @@ -10,31 +10,19 @@ function OAuthAccountsCard({ accounts }) { const getProvider = ({ created_at, provider_id }) => ( - {provider_id === 'discord' ? ( - <> - - Discord - - ) : ( - <> - - {provider_id} (Unsupported) - - )}{' '} + <> + + Discord + - Linked on {dayjs(created_at).format(DATE_FORMAT)} - {accounts.length === 1 && ( - <> -
- You cannot unlink your only account. - - )} + {accounts.length}
); return ( - Linked accounts + Linked Discord Account {accounts.map((account) => getProvider(account))} {/*
*/}