mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-22 16:09:14 +08:00
21bc2ef398
* Move to Slate 44, start using types more extensively in Composer * More types and cleanup * Expose the editor object to the draft session, try exposing editor to session * Bump to Slate 45 for https://github.com/ianstormtaylor/slate/pull/2225/files * How did the unsubscribe plugin get in here * Bump Slate types, fix TS errors, start testing * Polish * Fix issue with emails not shrinking when you close quoted text * Fix the “remove quoted text” button * More polish * Fix issues with PR, improve typings * Remove spurious log
12 lines
340 B
TypeScript
12 lines
340 B
TypeScript
import { ComponentRegistry } from 'mailspring-exports';
|
|
import ThreadUnsubscribeButton from './thread-unsubscribe-button';
|
|
|
|
export function activate() {
|
|
ComponentRegistry.register(ThreadUnsubscribeButton, {
|
|
role: 'message:BodyHeader',
|
|
});
|
|
}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(ThreadUnsubscribeButton);
|
|
}
|