Skip to content

Commit

Permalink
feat: add logo property custom providers
Browse files Browse the repository at this point in the history
  • Loading branch information
Chakravarthy7102 committed Sep 22, 2023
1 parent 78ce69e commit 9dac4f9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib/build/recipe/thirdparty/providers/custom.d.ts

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

4 changes: 4 additions & 0 deletions lib/build/recipe/thirdparty/providers/types.d.ts

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

3 changes: 2 additions & 1 deletion lib/build/thirdparty-shared.js

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

6 changes: 4 additions & 2 deletions lib/ts/recipe/thirdparty/providers/custom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ import Provider from ".";
* Class.
*/
export default class Custom extends Provider {
private logo: JSX.Element | undefined;
/*
* Constructor.
*/
constructor(config: CustomProviderConfig) {
super(config);
this.logo = config.logo;
}

getLogo = (): undefined => {
return undefined;
getLogo = (): JSX.Element | undefined => {
return this.logo;
};

/*
Expand Down
5 changes: 5 additions & 0 deletions lib/ts/recipe/thirdparty/providers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export type CustomProviderConfig = {
*/
name: string;

/**
* Provider Logo.
*/
logo?: JSX.Element;

/*
* Button Component
*/
Expand Down

0 comments on commit 9dac4f9

Please sign in to comment.