-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Boolean cell renderer & refactored renderers
Signed-off-by: Omkar Phansopkar <omkarphansopkar@gmail.com>
- Loading branch information
Showing
13 changed files
with
67 additions
and
43 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/pages/TableView/CustomCellRenderers/BooleanCellRenderer.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,12 @@ | ||
import React from "react"; | ||
|
||
interface BooleanCellRendererProps { | ||
value: boolean; | ||
} | ||
const BooleanCellRenderer: React.FunctionComponent<BooleanCellRendererProps> = ( | ||
props | ||
) => { | ||
return props.value ? "Yes" : "No"; | ||
}; | ||
|
||
export default BooleanCellRenderer; |
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
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
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
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
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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
import BooleanCellRenderer from "./BooleanCellRenderer"; | ||
import DetectionOriginRenderer from "./Licenses/DetectionOriginRenderer"; | ||
import FileLicenseDetectionsRenderer from "./Licenses/FileLicenseDetectionsRenderer"; | ||
import FileLicenseCluesRenderer from "./Licenses/FileLicenseCluesRenderer"; | ||
import FilePathRenderer from "./Licenses/FilePathRenderer"; | ||
import DetectionOriginRenderer from "./Licenses/DetectionOriginRenderer"; | ||
import RegionLinesRenderer from "./Licenses/RegionLinesRenderer"; | ||
import ListCellRenderer from "./ListCellRenderer"; | ||
import UrlListCellRenderer from "./UrlListCellRenderer"; | ||
import RegionLinesRenderer from "./Licenses/RegionLinesRenderer"; | ||
import TickRenderer from "./TickRenderer"; | ||
import UrlListCellRenderer from "./UrlListCellRenderer"; | ||
|
||
export { | ||
TickRenderer, | ||
ListCellRenderer, | ||
RegionLinesRenderer, | ||
BooleanCellRenderer, | ||
DetectionOriginRenderer, | ||
UrlListCellRenderer, | ||
FilePathRenderer, | ||
FileLicenseDetectionsRenderer, | ||
FileLicenseCluesRenderer, | ||
ListCellRenderer, | ||
RegionLinesRenderer, | ||
TickRenderer, | ||
UrlListCellRenderer, | ||
}; |
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
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