-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6115 from Sage/FE-4791-FT-TS
refactor(flat-table): convert all files in directory to typescript FE-4791
- Loading branch information
Showing
87 changed files
with
5,583 additions
and
5,607 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
src/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.d.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ggable/flat-table-body-draggable.style.js → ...ggable/flat-table-body-draggable.style.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/components/flat-table/flat-table-body-draggable/index.d.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from "./flat-table-body-draggable.component"; | ||
export type { FlatTableBodyDraggableProps } from "./flat-table-body-draggable.component"; |
17 changes: 0 additions & 17 deletions
17
src/components/flat-table/flat-table-body/flat-table-body.component.js
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
src/components/flat-table/flat-table-body/flat-table-body.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from "react"; | ||
|
||
export interface FlatTableBodyProps { | ||
/** Array of FlatTableRow. */ | ||
children: React.ReactNode; | ||
} | ||
|
||
export const FlatTableBody = React.forwardRef< | ||
HTMLTableSectionElement, | ||
FlatTableBodyProps | ||
>(({ children, ...rest }: FlatTableBodyProps, ref) => { | ||
return ( | ||
<tbody ref={ref} {...rest}> | ||
{children} | ||
</tbody> | ||
); | ||
}); | ||
|
||
FlatTableBody.displayName = "FlatTableBody"; | ||
|
||
export default FlatTableBody; |
10 changes: 0 additions & 10 deletions
10
src/components/flat-table/flat-table-body/flat-table-body.d.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from "./flat-table-body.component"; | ||
export type { FlatTableBodyProps } from "./flat-table-body.component"; |
Oops, something went wrong.