File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 66
66
67
67
- name : Commit and Push
68
68
run : |
69
- git config user.name "GitHub Actions"
70
- git config user.email [email protected]
71
- git add .
72
- git commit -m "chore: updated build"
73
- git push origin HEAD --force
69
+ if [ $(git status . --porcelain=v1 2>/dev/null | wc -l) != "0" ] ; then
70
+ git config user.name "GitHub Actions"
71
+ git config user.email [email protected]
72
+ git add .
73
+ git commit -m "chore: updated build"
74
+ git push origin HEAD --force
75
+ fi
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ function DataTable<T>(props: TableProps<T>): JSX.Element {
120
120
direction = defaultProps . direction ,
121
121
onColumnOrderChange = defaultProps . onColumnOrderChange ,
122
122
keepExpandableFirst = defaultProps . keepExpandableFirst ,
123
+ footer = defaultProps . footer ,
123
124
} = props ;
124
125
125
126
const {
@@ -564,6 +565,7 @@ function DataTable<T>(props: TableProps<T>): JSX.Element {
564
565
</ Body >
565
566
) }
566
567
</ Table >
568
+ { footer && < div > { footer } </ div > }
567
569
</ Wrapper >
568
570
</ ResponsiveWrapper >
569
571
Original file line number Diff line number Diff line change @@ -107,4 +107,5 @@ export const defaultProps = {
107
107
onSort : noop ,
108
108
onColumnOrderChange : noop ,
109
109
keepExpandableFirst : false ,
110
+ footer : null ,
110
111
} ;
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ export type TableProps<T> = {
117
117
* Shows and displays a header with a title
118
118
* */
119
119
title ?: string | React . ReactNode ;
120
+ footer ?: React . ReactNode ;
120
121
} ;
121
122
122
123
export type TableColumnBase = {
You can’t perform that action at this time.
0 commit comments