Skip to content

Commit

Permalink
fix: use twitter as twitter providers Id
Browse files Browse the repository at this point in the history
  • Loading branch information
Chakravarthy7102 committed Sep 28, 2023
1 parent 3d1cabf commit 915bb5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/build/thirdparty-shared.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions lib/ts/recipe/thirdparty/providers/twitter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,19 @@ export default class Twitter extends Provider {
* Constructor.
*/
constructor(config?: TwitterProviderConfig) {
let id = "x";
let id = "twitter";
let name = "X";

const normalisedUseLegacyTwitterLogo = config?.useLegacyTwitterLogo === true;

if (normalisedUseLegacyTwitterLogo) {
id = "twitter";
name = "Twitter";
}

if (config?.id !== undefined) {
id = config.id;
}

super({
id,
name,
Expand Down

0 comments on commit 915bb5b

Please sign in to comment.