Mailspring/examples/N1-Github/lib/main.cjsx
Evan Morikawa 626a76622c refactor(package): remove old, unused, or private package. Adds examples
Moved to git@github.com:nylas/N1-private-packages.git

Also started an "examples" folder at the root level with an example Github
package
2015-09-10 12:57:40 -04:00

12 lines
325 B
CoffeeScript

{ComponentRegistry} = require 'nylas-exports'
ViewOnGithubButton = require "./view-on-github-button"
module.exports =
activate: (@state={}) ->
ComponentRegistry.register ViewOnGithubButton,
roles: ['message:Toolbar']
deactivate: ->
ComponentRegistry.unregister(ViewOnGithubButton)
serialize: -> @state