Skip to content

Commit

Permalink
refactor: clean up after rebase and component-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
monteri committed Jul 27, 2023
1 parent 06cc767 commit acaff78
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions component-generator/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ exports.COMPONENT_FILES = [
templatePath: path.resolve(__dirname, './templates/README.md'),
},
{
targetPath: path.resolve(__dirname, '../src/componentName/componentName.scss'),
templatePath: path.resolve(__dirname, './templates/styles.scss'),
targetPath: path.resolve(__dirname, '../src/componentName/index.scss'),
templatePath: path.resolve(__dirname, './templates/index.scss'),
},
{
targetPath: path.resolve(__dirname, '../src/componentName/componentName.test.jsx'),
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion component-generator/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function addComponentToExports(componentName) {
);
fs.appendFileSync(
path.resolve(__dirname, '../src/index.scss'),
`@import './${componentName}/${componentName}.scss';\n`,
`@import "./${componentName}";\n`,
);
}

Expand Down
24 changes: 12 additions & 12 deletions src/ChipCarousel/ChipCarousel.scss → src/ChipCarousel/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
}
}
}
}

.pgn__chip-carousel__right-control,
.pgn__chip-carousel__left-control {
position: absolute;
z-index: 2;
top: $chip-carousel-controls-top-offset;
}
.pgn__chip-carousel__right-control,
.pgn__chip-carousel__left-control {
position: absolute;
z-index: 2;
top: $chip-carousel-controls-top-offset;
}

.pgn__chip-carousel__right-control {
right: 0;
}
.pgn__chip-carousel__right-control {
right: 0;
}

.pgn__chip-carousel__left-control {
left: 0;
.pgn__chip-carousel__left-control {
left: 0;
}
}
2 changes: 1 addition & 1 deletion src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@import "./Collapsible";
@import "./CloseButton";
@import "./Chip";
@import "./ChipCarousel/ChipCarousel";
@import "./ChipCarousel";
@import "./Code";
@import "./Dropdown";
@import "./Fieldset";
Expand Down

0 comments on commit acaff78

Please sign in to comment.