Skip to content

Commit

Permalink
fix: removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-krakowski committed Jun 20, 2021
1 parent 4d32204 commit fbbb3d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/p2/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const rgbToHex = ({ r, g, b }) => {
r = Math.round(r * 255);
g = Math.round(g * 255);
b = Math.round(b * 255);
console.log(r);
return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
};
const hslToRgb = ({ h, s, l }) => {
Expand Down Expand Up @@ -233,7 +232,6 @@ const createInstanceOfComponent = (mainComponent, options) => {
const titleElement = elementComponent.findOne((n) => n.type === 'TEXT' && n.name === 'Title');
const colorElement = elementComponent.findOne((n) => n.type === 'FRAME' && n.name === 'Color');
const badgeElement = elementComponent.findOne((n) => n.type === 'TEXT' && n.name === 'Badge');
console.log('ttt', style.paints[0]);
if (isSolidPaint(style.paints[0])) {
colorElement.fillStyleId = style.id;
titleElement.deleteCharacters(0, titleElement.characters.length);
Expand Down
2 changes: 0 additions & 2 deletions packages/p2/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const rgbToHex = ({ r, g, b }: RGB) => {
r = Math.round(r * 255)
g = Math.round(g * 255)
b = Math.round(b * 255)
console.log(r)
return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b)
}

Expand Down Expand Up @@ -258,7 +257,6 @@ const createInstanceOfComponent = (
const titleElement = elementComponent.findOne((n) => n.type === 'TEXT' && n.name === 'Title') as TextNode
const colorElement = elementComponent.findOne((n) => n.type === 'FRAME' && n.name === 'Color') as FrameNode
const badgeElement = elementComponent.findOne((n) => n.type === 'TEXT' && n.name === 'Badge') as TextNode
console.log('ttt', style.paints[0])

if (isSolidPaint(style.paints[0])) {
colorElement.fillStyleId = style.id
Expand Down

0 comments on commit fbbb3d4

Please sign in to comment.