Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Mazzon committed Nov 10, 2023
1 parent 114243d commit 68c6297
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/creator/create/BondscapeSwitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Props {
readonly required?: boolean;
}

const SmallTextInput = ({ title, value, onChange, required }: Props) => {
const BondscapeSwitch = ({ title, value, onChange, required }: Props) => {
const [isChecked, setIsChecked] = useState(value || false);
return (
<div className="flex flex-1 flex-row bg-bondscape-text_neutral_100 gap-2 px-[1rem] rounded-[16px] items-center">
Expand All @@ -20,6 +20,7 @@ const SmallTextInput = ({ title, value, onChange, required }: Props) => {
</div>
<InputSwitch
pt={{
// @ts-ignore
slider: ({ props }) => ({
className: props.checked
? "bg-bondscape-primary"
Expand All @@ -36,4 +37,4 @@ const SmallTextInput = ({ title, value, onChange, required }: Props) => {
);
};

export default SmallTextInput;
export default BondscapeSwitch;

0 comments on commit 68c6297

Please sign in to comment.