Skip to content

Commit

Permalink
Fix #4099 : Dataview: Callback Documentation Typo
Browse files Browse the repository at this point in the history
apply format
  • Loading branch information
habubey committed Mar 8, 2023
1 parent c83f113 commit 55806e4
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion api-generator/components/dataview.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const DataViewProps = [
name: 'itemTemplate',
type: 'function',
default: 'null',
description: 'Function that gets the option along with the layout mdoe and returns the content.'
description: 'Function that gets the option along with the layout mode and returns the content.'
}
];

Expand Down
2 changes: 1 addition & 1 deletion components/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -11848,7 +11848,7 @@
}
],
"returnType": "ReactNode",
"description": "Function that gets the option along with the layout mdoe and returns the content."
"description": "Function that gets the option along with the layout mode and returns the content."
},
{
"name": "onPage",
Expand Down
2 changes: 1 addition & 1 deletion components/lib/dataview/dataview.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export interface DataViewProps extends Omit<React.DetailedHTMLProps<React.HTMLAt
*/
onPage?(event: DataViewPageEvent): void;
/**
* Function that gets the option along with the layout mdoe and returns the content.
* Function that gets the option along with the layout mode and returns the content.
* @param {*} item - Current item.
* @param {'list' | 'grid' | (string & Record<string, unknown>)} layout - Current layout.
*/
Expand Down
7 changes: 3 additions & 4 deletions pages/landing/componentsection.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ const ComponentSection = () => {
<div className="box p-4 ">
<span className="text-secondary font-medium block mb-3">Balance</span>
<div className="flex flex-wrap lg:flex-nowrap justify-content-start gap-3">
<InputNumber value={240} mode="currency" currency="USD" locale="en-US" className="w-full" inputClassName='lg:w-6'/>
<InputNumber value={356} mode="currency" currency="USD" locale="en-US" className="w-full" inputClassName='lg:w-6'/>
<InputNumber value={240} mode="currency" currency="USD" locale="en-US" className="w-full" inputClassName="lg:w-6" />
<InputNumber value={356} mode="currency" currency="USD" locale="en-US" className="w-full" inputClassName="lg:w-6" />
</div>
<span className="text-secondary font-medium block mt-5 mb-3">Category</span>
<div className="flex justify-content-between flex-wrap gap-3">
Expand Down Expand Up @@ -160,7 +160,7 @@ const ComponentSection = () => {
<div className="flex flex-column w-full gap-5 justify-content-start xl:w-24rem z-1">
<div className="box p-4 ">
<div className="surface-card mb-4 w-full text-center p-5" style={{ borderRadius: '10px' }}>
<img src="images/landing-new/brown-watch.png" alt="Watch" className='w-14rem' />
<img src="images/landing-new/brown-watch.png" alt="Watch" className="w-14rem" />
</div>
<div className="flex align-items-center mb-4">
<div className="flex flex-column">
Expand Down Expand Up @@ -248,7 +248,6 @@ const ComponentSection = () => {
</div>
</div>


<div className="components-strip-top absolute w-full md:w-6 h-8rem top-0 left-0"></div>
<div className="components-strip-bottom absolute w-full md:w-6 h-8rem bottom-0 right-0"></div>
</div>
Expand Down
1 change: 0 additions & 1 deletion pages/landing/featuressection.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ const FeaturesSection = (props) => {
</div>
</div>
</div>

</div>
</section>
);
Expand Down
21 changes: 12 additions & 9 deletions pages/landing/getstartedsection.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@ const GetStartedSection = () => {
Get Started <i className="pi pi-arrow-right ml-3"></i>
</a>
</Link>
<div className="relative cursor-pointer box download-box w-15rem font-medium p-3 px-4 mt-3 md:mt-0 md:ml-3 bg-transparent inline-flex align-items-center fadeinright animation-duration-2000 animation-ease-out" onClick={() => {
navigator.clipboard.writeText('npm i primereact') ;
npmCopied('copied!')
copiedIcon('pi pi-copy mr-3 download-icon')
setTimeout(() => {
npmCopied('npm i primereact')
copiedIcon('pi pi-download mr-3 download-icon')
}, 2000);
}}>
<div
className="relative cursor-pointer box download-box w-15rem font-medium p-3 px-4 mt-3 md:mt-0 md:ml-3 bg-transparent inline-flex align-items-center fadeinright animation-duration-2000 animation-ease-out"
onClick={() => {
navigator.clipboard.writeText('npm i primereact');
npmCopied('copied!');
copiedIcon('pi pi-copy mr-3 download-icon');
setTimeout(() => {
npmCopied('npm i primereact');
copiedIcon('pi pi-download mr-3 download-icon');
}, 2000);
}}
>
<i className={downloadIcon}></i>
<span className="font-bold select-all" style={{ fontFamily: 'monaco, monospace' }}>
{npmText}
Expand Down
1 change: 0 additions & 1 deletion pages/landing/headersection.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ const HeaderSection = (props) => {
</button>
</div>
</div>

</section>
);
};
Expand Down
2 changes: 1 addition & 1 deletion pages/landing/userssection.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const UsersSection = (props) => {
</div>
<div className="col-6 md:col-4 lg:col-3 xl:col-2 flex justify-content-center p-3">
<div className="box w-10rem h-10rem flex justify-content-center align-items-center bg-transparent">
<img src={`https://primefaces.org/cdn/primereact/images/landing-new/whouses/mercedes-${colorScheme}.svg`} alt="mercedes logo" />
<img src={`https://primefaces.org/cdn/primereact/images/landing-new/whouses/mercedes-${colorScheme}.svg`} alt="mercedes logo" />
</div>
</div>
<div className="col-6 md:col-4 lg:col-3 xl:col-2 flex justify-content-center p-3">
Expand Down

0 comments on commit 55806e4

Please sign in to comment.