Skip to content

Commit

Permalink
staging deploy error ; capitalize SelectorStyles
Browse files Browse the repository at this point in the history
  • Loading branch information
roienatan committed Nov 24, 2023
1 parent a234a23 commit 37a2e69
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useFormikContext } from "formik";
import { ProposalsTypes } from "@/shared/constants";
import { RightArrowThinIcon } from "@/shared/icons";
import { NewProposalCreationFormValues } from "@/shared/interfaces";
import { selectorStyles } from "./selectorStyles";
import { SelectorStyles } from "./selectorStyles";
import styles from "./ProposalTypeSelect.module.scss";

interface ProposalTypeSelectProps {
Expand Down Expand Up @@ -52,7 +52,7 @@ const ProposalTypeSelect = ({ commonBalance }: ProposalTypeSelectProps) => {
}}
onBlur={handleBlur("proposalType")}
hideSelectedOptions={false}
styles={selectorStyles(hasError)}
styles={SelectorStyles(hasError)}
components={{
DropdownIndicator,
}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ThemeColors } from "@/shared/constants";
import useThemeColor from "@/shared/hooks/useThemeColor";

export const selectorStyles = (hasError: boolean) => {
export const SelectorStyles = (hasError: boolean) => {
const { getThemeColor } = useThemeColor();

return {
Expand Down
4 changes: 2 additions & 2 deletions src/shared/components/Form/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import classNames from "classnames";
import { useFormikContext } from "formik";
import { RightArrowThinIcon } from "@/shared/icons";
import { SelectOptionType } from "@/shared/interfaces/Select";
import { selectorStyles } from "./selectorStyles";
import { SelectorStyles } from "./selectorStyles";
import styles from "./Select.module.scss";

interface FormSelectProps {
Expand Down Expand Up @@ -54,7 +54,7 @@ const FormSelect: FC<FormSelectProps> = ({
}}
onBlur={handleBlur(formName)}
hideSelectedOptions={false}
styles={selectorStyles(hasError)}
styles={SelectorStyles(hasError)}
components={{
DropdownIndicator,
}}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/Form/Select/selectorStyles.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ThemeColors } from "@/shared/constants";
import useThemeColor from "@/shared/hooks/useThemeColor";

export const selectorStyles = (hasError: boolean) => {
export const SelectorStyles = (hasError: boolean) => {
const { getThemeColor } = useThemeColor();

return {
Expand Down

0 comments on commit 37a2e69

Please sign in to comment.