Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
fix: add className to Input
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Aug 20, 2021
1 parent 27602ad commit 0a6f276
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 7 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion stories/Actions.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FunctionComponent, ReactNode } from 'react';

import styles from './actions.scss';
import styles from './Actions.scss';

export interface ActionsProps {
primary?: ReactNode;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion stories/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import classNames from 'classnames';
import React, { Component, FunctionComponent, ReactNode } from 'react';
import styles from './button.scss';
import styles from './Button.scss';
import { Theme } from './constants';
import { Spinner } from './Spinner';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion stories/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import classNames from 'classnames';
import React, { FunctionComponent, ReactNode } from 'react';
import styles from './card.scss';
import styles from './Card.scss';
import { Layout } from './constants';
import { Grid } from './Grid';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion stories/Checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import classNames from 'classnames';
import React, { FunctionComponent, useEffect, useState } from 'react';
import styles from './checkbox.scss';
import styles from './Checkbox.scss';

export interface CheckboxProps {
/**
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion stories/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { FunctionComponent } from 'react';
import { FaFacebookF, FaTwitter, FaShare, FaHeart } from 'react-icons/fa';
import { GoPlus } from 'react-icons/go';
import { MdDelete } from 'react-icons/md';
import styles from './icon.scss';
import styles from './Icon.scss';

export const ICON_MAP = {
plus: GoPlus,
Expand Down
File renamed without changes.
7 changes: 5 additions & 2 deletions stories/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import classNames from 'classnames';
import React, { ChangeEventHandler, FunctionComponent, useEffect, useState } from 'react';
import styles from './input.scss';
import styles from './Input.scss';

export interface InputProps {
className?: string,
value?: string;
placeholder?: string;

Expand All @@ -13,6 +14,7 @@ export interface InputProps {
}

export const Input: FunctionComponent<InputProps> = ({
className,
value,
placeholder,
onChange,
Expand All @@ -31,7 +33,8 @@ export const Input: FunctionComponent<InputProps> = ({
return (
<div
className={classNames(
styles.input
styles.input,
className,
)}
>
<input
Expand Down

0 comments on commit 0a6f276

Please sign in to comment.