From d27affabfb20469cf6b16039a0c8aa0c6b82cd9a Mon Sep 17 00:00:00 2001 From: Timothy Farrell Date: Mon, 6 Nov 2017 21:47:23 -0600 Subject: [PATCH] It's a style service, not a styletron util. --- packages/gallery/src/interface/gallery.js | 2 +- .../gallery/src/{utils/styletron.js => services/style.js} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename packages/gallery/src/{utils/styletron.js => services/style.js} (92%) diff --git a/packages/gallery/src/interface/gallery.js b/packages/gallery/src/interface/gallery.js index 0f3f8b4..3ac7585 100644 --- a/packages/gallery/src/interface/gallery.js +++ b/packages/gallery/src/interface/gallery.js @@ -5,9 +5,9 @@ import * as imageTag from '../context/manageImageTags.js'; import { ImageView } from './image.js'; import { AlbumView } from './album.js'; import { router, routeChanged } from '../services/router.js'; +import { styled, el } from '../services/style.js'; import { LiveArray } from '../utils/livearray.js'; import { Watcher } from '../utils/watcher.js'; -import { styled, el } from '../utils/styletron.js'; function uploadImages(evt) { image.add(evt.currentTarget.files); diff --git a/packages/gallery/src/utils/styletron.js b/packages/gallery/src/services/style.js similarity index 92% rename from packages/gallery/src/utils/styletron.js rename to packages/gallery/src/services/style.js index f56ca01..f44f29a 100644 --- a/packages/gallery/src/utils/styletron.js +++ b/packages/gallery/src/services/style.js @@ -4,8 +4,8 @@ import { defineElement } from 'domvm'; const styletronSingleton = new Styletron(); -export function injectStyle(styles) { - return _injectStyle(styletronSingleton, styles); +export function injectStyle(...styles) { + return _injectStyle(styletronSingleton, Object.assign({}, ...styles)); } function isObject(obj) {