Skip to content

Commit

Permalink
fix: replace require with import
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdor committed Dec 23, 2021
1 parent f7512ef commit b9821b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Shadow/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import MotorCortex from "@donkeyclip/motorcortex";
import AnimeDefinition from "@donkeyclip/motorcortex-anime";
import { fontFamilyHelper } from "../helpers";
import loadIncidents from "./IncidentTree";

const Anime = MotorCortex.loadPlugin(AnimeDefinition);
const { fontFamilyHelper } = require("../helpers");
import loadIncidents from "./IncidentTree";

export default class Shadow extends MotorCortex.HTMLClip {
get fonts() {
Expand All @@ -13,8 +13,8 @@ export default class Shadow extends MotorCortex.HTMLClip {
src: `https://fonts.googleapis.com/css2?family=${fontFamilyHelper(
this.attrs.fontFamily,
this.attrs.fontWeight
)}&display=swap`
}
)}&display=swap`,
},
];
return font;
}
Expand Down Expand Up @@ -48,7 +48,7 @@ export default class Shadow extends MotorCortex.HTMLClip {

return `${+r},${+g},${+b}`;
}
this.colorsRGB = this.attrs.colors.map(c => hexToRGB(c));
this.colorsRGB = this.attrs.colors.map((c) => hexToRGB(c));

return `
.container {
Expand Down

0 comments on commit b9821b0

Please sign in to comment.