Skip to content

Commit b87974e

Browse files
omarefgOmar Flores Grimontt
and
Omar Flores Grimontt
authored
Added onGridSort prop to csv-viewer driver component (#111)
Co-authored-by: Omar Flores Grimontt <[email protected]>
1 parent e474c12 commit b87974e

File tree

3 files changed

+34
-13
lines changed

3 files changed

+34
-13
lines changed

package-lock.json

+30-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ import pdf from '../example_files/sample.pdf';
2222

2323
ReactDOM.render(
2424
<FileViewer
25-
fileType="pdf"
26-
filePath={pdf}
25+
fileType="xlsx"
26+
filePath={xlsx}
27+
onGridSort={() => null}
2728
/>,
2829
window.document.getElementById('app')
2930
);

src/components/drivers/csv-viewer.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class CsvViewer extends Component {
5151
rowsCount={rows.length}
5252
rowGetter={i => rows[i]}
5353
minHeight={this.props.height || 650}
54+
onGridSort={this.props.onGridSort}
5455
/>
5556
);
5657
}

0 commit comments

Comments
 (0)