diff --git a/docs/customization.md b/docs/customization.md index f0904d3..a670740 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -81,10 +81,10 @@ If you use the component injection API, you'll probably want to copy the default You'll also need to know which props are passed to your injected components. Scroll to the bottom of the following files to see their prop types. Or, [if you're using TypeScript](https://react-dropzone-uploader.js.org/docs/typescript), add a type definition to the props received by your custom component and inspect away. -- [InputComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Input.js) -- [PreviewComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Preview.js) -- [SubmitButtonComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/SubmitButton.js) -- [LayoutComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Layout.js) +- [InputComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Input.tsx) +- [PreviewComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Preview.tsx) +- [SubmitButtonComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/SubmitButton.tsx) +- [LayoutComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Layout.tsx) ### Custom Layout @@ -92,7 +92,7 @@ By default, RDU's layout component renders previews, file input and submit butto If you want to change this layout, e.g. to render the previews and submit button outside of your dropzone, you'll need to pass your own `LayoutComponent`. -If this sounds daunting you probably haven't looked at [Layout](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Layout.js) yet. Layout gets pre-rendered `input`, `previews`, and `submitButton` props, which makes changing RDU's layout trivial. +If this sounds daunting you probably haven't looked at [Layout](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Layout.tsx) yet. Layout gets pre-rendered `input`, `previews`, and `submitButton` props, which makes changing RDU's layout trivial. ### Pass Additional Props To Injected Components diff --git a/docs/props.md b/docs/props.md index f509387..57521ec 100644 --- a/docs/props.md +++ b/docs/props.md @@ -50,7 +50,7 @@ The following props can be passed to `Dropzone`. ## Props Passed To Injected Components If you use the component injection API, you'll want to know which props are passed to your injected components. Scroll to the bottom of the following files to see their prop types. -- [InputComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Input.js) -- [PreviewComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Preview.js) -- [SubmitButtonComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/SubmitButton.js) -- [LayoutComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Layout.js) +- [InputComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Input.tsx) +- [PreviewComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Preview.tsx) + - [SubmitButtonComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/SubmitButton.tsx) +- [LayoutComponent](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Layout.tsx) diff --git a/docs/typescript.md b/docs/typescript.md index 79d2f07..534b342 100644 --- a/docs/typescript.md +++ b/docs/typescript.md @@ -4,7 +4,7 @@ title: TypeScript --- -RDU [ships with precise TypeScript definitions](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Dropzone.d.ts) for just about everything in the library. +RDU [ships with precise TypeScript definitions](https://github.com/fortana-co/react-dropzone-uploader/blob/master/src/Dropzone.tsx) for just about everything in the library. RDU has a flexible and powerful API. Using TypeScript will help you use it properly, and help you get a handle on everything it can do.