mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
Changes
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// TODO: (bc) move this to typograhpy!
|
||||
|
||||
.root {
|
||||
font-family: "Source Sans Pro";
|
||||
font-weight: 400;
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export const root: string;
|
||||
@@ -3,11 +3,14 @@ import React, { InputHTMLAttributes, StatelessComponent } from "react";
|
||||
|
||||
import * as styles from "./TextField.css";
|
||||
|
||||
interface InnerProps extends InputHTMLAttributes<HTMLInputElement> {
|
||||
interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
|
||||
classes?: typeof styles;
|
||||
}
|
||||
|
||||
const TextField: StatelessComponent<InnerProps> = ({ className, ...rest }) => {
|
||||
const TextField: StatelessComponent<TextFieldProps> = ({
|
||||
className,
|
||||
...rest
|
||||
}) => {
|
||||
return <input {...rest} className={cn(styles.root, className)} />;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user