Skip to content

Commit

Permalink
Merge pull request #239 from aVileBroker/238-code-sandbox
Browse files Browse the repository at this point in the history
#238 ci(codesandbox): add empty codesandbox CI config
  • Loading branch information
aVileBroker authored Jul 7, 2021
2 parents bfed065 + 8f6dd45 commit 7082524
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"buildCommand": "predeploy",
"sandboxes": ["new"],
"node": "14"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
},
"scripts": {
"bundle": "yarn run clean && yarn run webpack && yarn run dts",
"predeploy": "cd example && yarn install && yarn run bundle && yarn run build-storybook",
"predeploy": "yarn install && yarn run bundle && yarn run build-storybook",
"start": "start-storybook -p 9009 -s public",
"build-storybook": "build-storybook -c .storybook -o docs",
"lint": "eslint src/**/*.tsx src/**/*.ts --ignore-pattern *.css --fix",
Expand Down
8 changes: 4 additions & 4 deletions src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,17 @@ const Modal = ({
...animationSpringConfig,
});

const escFunction = useCallback((event) => {
if(event.keyCode === 27) {
const escFunction = useCallback(event => {
if (event.keyCode === 27) {
onClickOutside();
}
}, []);

useEffect(() => {
document.addEventListener("keydown", escFunction, false);
document.addEventListener('keydown', escFunction, false);

return () => {
document.removeEventListener("keydown", escFunction, false);
document.removeEventListener('keydown', escFunction, false);
};
}, []);

Expand Down
2 changes: 1 addition & 1 deletion src/components/Text/Text.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {ReactNode, RefObject } from 'react';
import React, { ReactNode, RefObject } from 'react';
import styled, { StyledComponentBase } from 'styled-components';

import Icon from '@mdi/react';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const getShadowStyle = (elevation = 0, shadowColor: string) => {
if (elevation === 0) {
return shadowStyle;
}

const { red, green, blue } = parseToRgb(shadowColor);
const { xOffset, yOffset, blur, opacity } = calculateElevationValues(elevation);

Expand Down

0 comments on commit 7082524

Please sign in to comment.