Skip to content

Commit

Permalink
Removed apiKey and apiSecret
Browse files Browse the repository at this point in the history
  • Loading branch information
santushnath committed Jul 4, 2024
1 parent abed6aa commit a013d10
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
"typescript": "^3.9.10"
},
"dependencies": {
"mailui-editor-types": "^1.0.18"
"mailui-editor-types": "^1.0.20"
}
}
2 changes: 0 additions & 2 deletions src/hooks/useEditorOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const useEditorOptions = (props: MailUiEditorProps, editorId: string) => {
return useMemo(() => {
const options: MailUiEditorProps['options'] = {
...(props.options || {}),
apiKey: props.options?.apiKey,
apiSecret: props.options?.apiSecret,
signature: props.options?.signature,
appearance: props.options?.appearance,
displayMode: props.options?.displayMode || 'email',
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('it', () => {

// @ts-ignore
const div = document.createElement('div');
ReactDOM.render(<MailUiEditor options={{apiKey: '1234', apiSecret: '1234'}} ref={ref}/>, div);
ReactDOM.render(<MailUiEditor options={{signature: '1234'}} ref={ref}/>, div);
ReactDOM.unmountComponentAtNode(div);
});
});

0 comments on commit a013d10

Please sign in to comment.