Skip to content

Commit

Permalink
Adds fix for Title
Browse files Browse the repository at this point in the history
  • Loading branch information
iamraffe committed Apr 4, 2016
1 parent 9dfc82a commit 749efdf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, {Component} from 'react';
import Radium from 'radium';
import SVGRenderer from './SVGRenderer';

import {Text, Path, Rect, Circle} from './objects';
import {Text, Path, Rect, Circle, Title} from './objects';

class Preview extends Component {
static defaultProps = {
Expand All @@ -29,9 +29,9 @@ class Preview extends Component {
};

let canvas = {
width,
height,
canvasWidth: width,
width,
height,
canvasWidth: width,
canvasHeight: height
};

Expand All @@ -55,4 +55,4 @@ const styles = {
}
};

export default Radium(Preview);
export default Radium(Preview);
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export Preview from './Preview';
export {Vector, Path, Rect, Circle, Text} from './objects';
import {Text, Path, Rect, Circle, Title} from './objects';
export {TextPanel, SizePanel, StylePanel, ArrangePanel} from './panels';
export default from './Designer';
export default from './Designer';
6 changes: 5 additions & 1 deletion src/objects/Title.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import Text from './Text';

import React, {Component} from 'react';
import {modes} from '../constants';
import Icon from '../Icon';
import _ from 'lodash';

export class Title extends Text {
export default class Title extends Text {
static meta = {
icon: <center style={{color: "gray"}}>Title</center>,
initial: {
Expand Down

0 comments on commit 749efdf

Please sign in to comment.