Skip to content

Commit

Permalink
🐛 fix(tsc): fix new tsc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thrownullexception committed Feb 24, 2024
1 parent 64b3ec1 commit 1ef0433
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import DatePicker from "react-datepicker";
import { FieldMetaState } from "react-final-form";
import styled from "styled-components";
import { USE_ROOT_COLOR } from "frontend/design-system/theme/root";
import { InputStyles } from "../Styles";
import { IInput, InputStyles } from "../Styles";
import { ISharedFormInput } from "../_types";
import { wrapLabelAndError, generateFormArias } from "../_wrapForm";
import { dateLibraryStyle } from "./defaultStyle";
Expand All @@ -13,7 +13,7 @@ interface IFormDateInput extends ISharedFormInput {
maxDate?: Date;
}

const Root = styled.div`
const Root = styled.div<IInput>`
${dateLibraryStyle}
.react-datepicker {
border: 1px solid ${USE_ROOT_COLOR("border-color")};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function AsyncFormSelect(props: IProps) {
loadOptions={(inputValue) =>
new Promise((resolve) => {
debouncedSearch(inputValue, url, disabledOptions, resolve);
})
}) as unknown as void
}
/>,
props
Expand Down Expand Up @@ -158,7 +158,7 @@ export function AsyncFormMultiSelect({
loadOptions={(inputValue) =>
new Promise((resolve) => {
debouncedSearch(inputValue, url, [], resolve);
})
}) as unknown as void
}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/design-system/components/Form/Styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { USE_ROOT_COLOR } from "frontend/design-system/theme/root";
import { SYSTEM_COLORS } from "frontend/design-system/theme/system";
import styled, { css } from "styled-components";

interface IInput {
export interface IInput {
sm?: true;
}

Expand Down
1 change: 1 addition & 0 deletions src/frontend/design-system/primitives/Typo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const weights: Record<TextProps["weight"], number> = {
thick: 600,
};

// @ts-ignore
const Text = styled.p.attrs((props: TextProps) => ({
role: props.as || "p",
id: props.id,
Expand Down

0 comments on commit 1ef0433

Please sign in to comment.