Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
haideralsh committed Nov 25, 2024
1 parent 3ef420d commit 70399f9
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 35 deletions.
1 change: 0 additions & 1 deletion src/BottomSheet/BottomSheet.parts.story.tsx

This file was deleted.

7 changes: 4 additions & 3 deletions src/DatePicker/DatePickerStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ export const DatePickerStyles = createGlobalStyle<{ theme: DefaultNDSThemeType }
cursor: "pointer",
},
},
".react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover": {
backgroundColor: "transparent",
},
".react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover":
{
backgroundColor: "transparent",
},
".react-datepicker__day-names, .react-datepicker__week": {
whiteSpace: "nowrap",
},
Expand Down
2 changes: 0 additions & 2 deletions src/Divider/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@

export { default as Divider } from "./Divider";

54 changes: 26 additions & 28 deletions src/NDSProvider/GlobalStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,32 @@ export type GlobalStylesProps = {
locale?: string;
};

const GlobalStyles = styled.div(
({ theme, locale }: GlobalStylesProps): CSSObject => {
const fontFamily = locale === "zh_CN" ? theme.fonts.sc : theme.fonts.base;
return {
color: theme.colors.black,
const GlobalStyles = styled.div(({ theme, locale }: GlobalStylesProps): CSSObject => {
const fontFamily = locale === "zh_CN" ? theme.fonts.sc : theme.fonts.base;
return {
color: theme.colors.black,
fontFamily,
fontSize: theme.fontSizes.base,
lineHeight: theme.lineHeights.base,
"-webkit-font-smoothing": "antialiased",
"-moz-osx-font-smoothing": "grayscale",
"*": {
boxSizing: "border-box",
},
img: {
maxWidth: "100%",
height: "auto",
},
button: {
fontFamily,
fontSize: theme.fontSizes.base,
lineHeight: theme.lineHeights.base,
"-webkit-font-smoothing": "antialiased",
"-moz-osx-font-smoothing": "grayscale",
"*": {
boxSizing: "border-box",
},
img: {
maxWidth: "100%",
height: "auto",
},
button: {
fontFamily,
},
input: {
fontFamily,
},
textarea: {
fontFamily,
},
};
}
);
},
input: {
fontFamily,
},
textarea: {
fontFamily,
},
};
});

export default GlobalStyles;
2 changes: 1 addition & 1 deletion src/utils/story/dashed.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled, { StyledComponent } from "styled-components";
import { ComponentType } from "react";
import { DefaultNDSThemeType } from "../../theme.type";
import { DefaultNDSThemeType } from "../../theme";

/**
* A styled utility that adds a dashed border around a component
Expand Down

0 comments on commit 70399f9

Please sign in to comment.