Commit 10d88122 authored by MaxSol1's avatar MaxSol1
Browse files

add dynamic text to viewer

parent 41621990
......@@ -10,7 +10,7 @@ import { CheckSVG } from './elements/svg';
import { CheckLine } from './elements/line';
import { AudioStream } from './elements/audio';
import { IframeVideo } from './elements/video';
import { DynamicText } from './elements/text';
import { StaticText } from './statics/text';
import { StaticTicker } from './statics/ticker';
import { StaticSVG } from './statics/svg';
......@@ -57,6 +57,7 @@ export function Viewer({slug, dashboardReducer}) {
if(element.type === 'check-image') { ele = <CheckImage options={element.options} dashboard={dashboard} slug={slug}/> }
if(element.type === 'check-line') { ele = <CheckLine options={element.options} dashboard={dashboard} slug={slug}/> }
if(element.type === 'static-text') { ele = <StaticText options={element.options}/> }
if(element.type === 'dynamic-text') { ele = <DynamicText options={element.options}/> }
if(element.type === 'static-ticker') { ele = <StaticTicker options={element.options}/> }
if(element.type === 'static-svg') { ele = <StaticSVG options={element.options}/> }
if(element.type === 'static-image') { ele = <StaticImage options={element.options}/> }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment