mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
add the module to the widget_maker.go
This commit is contained in:
@@ -73,6 +73,7 @@ import (
|
||||
"github.com/wtfutil/wtf/modules/weatherservices/weather"
|
||||
"github.com/wtfutil/wtf/modules/zendesk"
|
||||
"github.com/wtfutil/wtf/wtf"
|
||||
"github.com/wtfutil/wtf/modules/finnhub"
|
||||
)
|
||||
|
||||
// MakeWidget creates and returns instances of widgets
|
||||
@@ -308,6 +309,9 @@ func MakeWidget(
|
||||
case "exchangerates":
|
||||
settings := exchangerates.NewSettingsFromYAML(moduleName, moduleConfig, config)
|
||||
widget = exchangerates.NewWidget(app, pages, settings)
|
||||
case "finnhub":
|
||||
settings := finnhub.NewSettingsFromYAML(moduleName, moduleConfig, config)
|
||||
widget = finnhub.NewWidget(app, settings)
|
||||
default:
|
||||
settings := unknown.NewSettingsFromYAML(moduleName, moduleConfig, config)
|
||||
widget = unknown.NewWidget(app, settings)
|
||||
|
||||
Reference in New Issue
Block a user