Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/preview background color #25

Merged
merged 9 commits into from
Sep 7, 2018

Conversation

benistary
Copy link

Added select feature to changing background of Preview component

"react-element-to-jsx-string": "~14.0.1",
"react-frame-component": "~4.0.0",
"react-markings": "~1.3.0",
"react-dom": "~16.3.2",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co sa tu deje, preco sa znizuju verzie balickov?

"classnames": "~2.2.5",
"common-tags": "~1.8.0",
"firacode": "~1.205.0",
"npm": "^6.0.1",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toto tu asi nema byt ci?

componentDidMount() {
const previewBackgroundsArray = [];

Object.keys(previewBackgrounds).map(key => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const previewBackgroundsArray = Object.keys(previewBackgrounds).map(key => {
return {
        value: previewBackgrounds[key],
        label: key
      };
});

Nejak takto je to o moc lepsi zvyk

componentDidMount() {
const previewBackgroundsArray = [];

Object.keys(previewBackgrounds).map(key => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ich potrebne davat previewBackgrounds vobec do statu? Oni sa nemozu menit dynamicky. Ty ich len potrebujes v render() len dostat do stavu { value, label } ci?

@adammockor adammockor merged commit 51bdc7b into master Sep 7, 2018
@adammockor adammockor deleted the feature/preview-background-color branch November 27, 2018 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants