Skip to content

Commit 9bfc302

Browse files
committed
apply prettier fixes
1 parent ca6e786 commit 9bfc302

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default function CSVReader() {
107107
{({ getRootProps, acceptedFile, ProgressBar, getRemoveFileProps }) => (
108108
<>
109109
<div style={styles.csvReader}>
110-
<button type="button" {...getRootProps()} style={styles.browseFile}>
110+
<button type='button' {...getRootProps()} style={styles.browseFile}>
111111
Browse file
112112
</button>
113113
<div style={styles.acceptedFile}>

docs/src/components/screens/Demo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export default function Demo() {
322322
<>
323323
<div style={buttonStyles.csvReader}>
324324
<button
325-
type="button"
325+
type='button'
326326
{...getRootProps()}
327327
style={buttonStyles.browseFile}
328328
>
@@ -913,7 +913,7 @@ export default class Demo extends Component {
913913
}}
914914
>
915915
<button
916-
type="button"
916+
type='button'
917917
onClick={this.handleOpenDialog}
918918
style={{
919919
borderRadius: 0,

src/useCSVReader.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export interface ProgressBarComponentProps {
7171

7272
function useCSVReaderComponent<
7373
T = void,
74-
E extends HTMLDivElement | HTMLButtonElement = HTMLDivElement
74+
E extends HTMLDivElement | HTMLButtonElement = HTMLDivElement,
7575
>() {
7676
const CSVReaderComponent = ({
7777
children,
@@ -645,12 +645,12 @@ function useCSVReaderComponent<
645645
/**
646646
* A React hook to use the CSVReader component.
647647
* @returns The CSVReader component.
648-
*
649-
* @template T - The type of the parsed CSV file data result, where each key
648+
*
649+
* @template T - The type of the parsed CSV file data result, where each key
650650
* represents a column in the CSV file and each value represents the data type.
651-
* @template E - The type of the HTML element used for the input. Can be
651+
* @template E - The type of the HTML element used for the input. Can be
652652
* HTMLDivElement or HTMLButtonElement. Defaults to HTMLDivElement.
653-
*
653+
*
654654
* @example HTMLDivElement as the input element
655655
* ```tsx
656656
* import { useCSVReader } from 'react-papaparse';
@@ -661,12 +661,12 @@ function useCSVReaderComponent<
661661
* import { useCSVReader } from 'react-papaparse';
662662
* const { CSVReader } = useCSVReader<void, HTMLButtonElement>();
663663
* ```
664-
*
664+
*
665665
* @see {@link https://react-papaparse.js.org/docs#local-files Usage with Local Files}
666666
*/
667667
export function useCSVReader<
668668
T = void,
669-
E extends HTMLDivElement | HTMLButtonElement = HTMLDivElement
669+
E extends HTMLDivElement | HTMLButtonElement = HTMLDivElement,
670670
>() {
671671
const CSVReader = useCSVReaderComponent<T, E>();
672672

supports/create-react-app/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
// "Column 4": 7,
123123
// },
124124
// ]}
125-
// type="button"
125+
// type='button'
126126
// filename={'filename'}
127127
// config={
128128
// {

test/__snapshots__/CSVReader.spec.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Array [
2727
onDrop={[Function]}
2828
onFocus={[Function]}
2929
onKeyDown={[Function]}
30-
type="button"
30+
type='button'
3131
>
3232
Chargez votre offre
3333
</button>

0 commit comments

Comments
 (0)