Skip to content

Commit 714732c

Browse files
author
John Richard Chipps-Harding
authored
Fix/remove log (#5)
* Remove console.log * export format * version bump
1 parent a815a66 commit 714732c

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@phntms/css-components",
33
"description": "At its core, css-components is a simple wrapper around standard CSS. It allows you to write your CSS how you wish then compose them into a component ready to be used in React.",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
77
"homepage": "https://github.com/phantomstudios/css-components#readme",

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type PropsOf<
3737
C extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>
3838
> = JSX.LibraryManagedAttributes<C, React.ComponentPropsWithoutRef<C>>;
3939

40-
const styled = <V extends variantsType, E extends React.ElementType>(
40+
export const styled = <V extends variantsType, E extends React.ElementType>(
4141
element: E,
4242
baseClassName: string | string[],
4343
variants?: V,
@@ -89,7 +89,6 @@ const styled = <V extends variantsType, E extends React.ElementType>(
8989

9090
componentProps.className = componentStyles.join(" ");
9191
styledComponent.displayName = element.toString();
92-
console.log(styledComponent.displayName);
9392
return createElement(element, componentProps);
9493
}
9594
);
@@ -100,5 +99,3 @@ const styled = <V extends variantsType, E extends React.ElementType>(
10099
}
101100
>;
102101
};
103-
104-
export default styled;

0 commit comments

Comments
 (0)