discus-lib
Advanced tools
Comparing version 0.10.0 to 1.0.0
import React from "react"; | ||
import { CommentContextType } from "./utils"; | ||
import { CommentContextType, DiscusProps } from "./utils"; | ||
export declare const UserNameContext: React.Context<string>; | ||
export declare const CommentContext: React.Context<CommentContextType>; | ||
type discusProps = { | ||
name: string; | ||
}; | ||
declare const Discus: React.FC<discusProps>; | ||
declare const Discus: React.FC<DiscusProps>; | ||
export default Discus; |
import { Dispatch, SetStateAction } from "react"; | ||
export interface DiscusProps { | ||
name: string; | ||
} | ||
export type ReplyType = { | ||
@@ -3,0 +6,0 @@ id: string; |
import React from "react"; | ||
import { CommentContextType } from "./utils"; | ||
import { CommentContextType, DiscusProps } from "./utils"; | ||
export declare const UserNameContext: React.Context<string>; | ||
export declare const CommentContext: React.Context<CommentContextType>; | ||
type discusProps = { | ||
name: string; | ||
}; | ||
declare const Discus: React.FC<discusProps>; | ||
declare const Discus: React.FC<DiscusProps>; | ||
export default Discus; |
import { Dispatch, SetStateAction } from "react"; | ||
export interface DiscusProps { | ||
name: string; | ||
} | ||
export type ReplyType = { | ||
@@ -3,0 +6,0 @@ id: string; |
{ | ||
"name": "discus-lib", | ||
"version": "0.10.0", | ||
"version": "1.0.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
@@ -19,2 +19,3 @@ # discus-lib | ||
The component can also take an object as props which holds the name of the user to be displayed. If the property is not mentioned it will display as __Unknown User__ | ||
@@ -25,2 +26,6 @@ ```node | ||
const discusProps = { | ||
name: "Person 1" | ||
} | ||
const App: React.FC = () => { | ||
@@ -30,3 +35,3 @@ return ( | ||
<h1>My App</h1> | ||
<Discus /> | ||
<Discus {...discusProps} /> | ||
</div> | ||
@@ -33,0 +38,0 @@ ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
55565
1
42