Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amundsen_dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Surendar Reddy Mangannagari
amundsen_dev
Commits
2c6c8590
Unverified
Commit
2c6c8590
authored
Aug 05, 2020
by
Marcos Iglesias
Committed by
GitHub
Aug 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swaps React.SFC for React.FC types (#536)
parent
8f0cf22c
Changes
24
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
27 additions
and
27 deletions
+27
-27
CodeBlock.tsx
...c/js/components/DashboardPage/QueryListItem/CodeBlock.tsx
+1
-1
index.tsx
amundsen_application/static/js/components/Feedback/index.tsx
+2
-2
index.tsx
...n_application/static/js/components/NotFoundPage/index.tsx
+1
-1
index.tsx
...ion/static/js/components/SearchPage/SearchPanel/index.tsx
+1
-1
index.tsx
...ion/static/js/components/TableDetail/ColumnList/index.tsx
+1
-1
index.tsx
.../static/js/components/TableDetail/FrequentUsers/index.tsx
+1
-1
index.tsx
...on/static/js/components/TableDetail/LineageLink/index.tsx
+1
-1
index.tsx
.../components/TableDetail/ResourceReportsDropdown/index.tsx
+1
-1
index.tsx
...ion/static/js/components/TableDetail/SourceLink/index.tsx
+1
-1
index.tsx
...ic/js/components/TableDetail/TableHeaderBullets/index.tsx
+1
-1
index.tsx
...ion/static/js/components/TableDetail/WriterLink/index.tsx
+1
-1
index.tsx
...ication/static/js/components/common/AvatarLabel/index.tsx
+1
-1
index.tsx
...plication/static/js/components/common/BadgeList/index.tsx
+1
-1
index.tsx
...lication/static/js/components/common/Breadcrumb/index.tsx
+1
-1
index.tsx
...lication/static/js/components/common/EntityCard/index.tsx
+1
-1
index.tsx
...en_application/static/js/components/common/Flag/index.tsx
+1
-1
index.tsx
...cation/static/js/components/common/FlashMessage/index.tsx
+1
-1
index.tsx
...lication/static/js/components/common/InfoButton/index.tsx
+1
-1
index.tsx
...static/js/components/common/Inputs/CheckBoxItem/index.tsx
+1
-1
index.tsx
...s/components/common/ResourceListItem/SchemaInfo/index.tsx
+1
-1
index.tsx
...r/InlineSearchResults/ResultItemList/ResultItem/index.tsx
+1
-1
index.tsx
...c/js/components/common/ShimmeringResourceLoader/index.tsx
+2
-2
index.tsx
...ic/js/components/common/ShimmeringTagListLoader/index.tsx
+2
-2
index.tsx
...ation/static/js/components/common/TabsComponent/index.tsx
+1
-1
No files found.
amundsen_application/static/js/components/DashboardPage/QueryListItem/CodeBlock.tsx
View file @
2c6c8590
...
@@ -10,7 +10,7 @@ type CodeBlockProps = {
...
@@ -10,7 +10,7 @@ type CodeBlockProps = {
text
:
string
;
text
:
string
;
};
};
const
CodeBlock
:
React
.
S
FC
<
CodeBlockProps
>
=
({
text
}:
CodeBlockProps
)
=>
{
const
CodeBlock
:
React
.
FC
<
CodeBlockProps
>
=
({
text
}:
CodeBlockProps
)
=>
{
return
(
return
(
<
CopyBlock
<
CopyBlock
text=
{
text
}
text=
{
text
}
...
...
amundsen_application/static/js/components/Feedback/index.tsx
View file @
2c6c8590
...
@@ -14,12 +14,12 @@ import * as Constants from './constants';
...
@@ -14,12 +14,12 @@ import * as Constants from './constants';
import
'./styles.scss'
;
import
'./styles.scss'
;
export
interface
FeedbackProps
{
export
interface
FeedbackProps
{
content
?:
React
.
S
FC
<
any
>
;
content
?:
React
.
FC
<
any
>
;
title
?:
string
;
title
?:
string
;
}
}
interface
FeedbackState
{
interface
FeedbackState
{
content
:
React
.
S
FC
<
any
>
;
content
:
React
.
FC
<
any
>
;
feedbackType
:
FeedbackType
;
feedbackType
:
FeedbackType
;
isOpen
:
boolean
;
isOpen
:
boolean
;
}
}
...
...
amundsen_application/static/js/components/NotFoundPage/index.tsx
View file @
2c6c8590
...
@@ -9,7 +9,7 @@ import './styles.scss';
...
@@ -9,7 +9,7 @@ import './styles.scss';
import
Breadcrumb
from
'components/common/Breadcrumb'
;
import
Breadcrumb
from
'components/common/Breadcrumb'
;
const
NotFoundPage
:
React
.
S
FC
<
any
>
=
()
=>
{
const
NotFoundPage
:
React
.
FC
<
any
>
=
()
=>
{
return
(
return
(
<
DocumentTitle
title=
"404 Page Not Found - Amundsen"
>
<
DocumentTitle
title=
"404 Page Not Found - Amundsen"
>
<
div
className=
"container not-found-page"
>
<
div
className=
"container not-found-page"
>
...
...
amundsen_application/static/js/components/SearchPage/SearchPanel/index.tsx
View file @
2c6c8590
...
@@ -9,7 +9,7 @@ type SearchPanelProps = {
...
@@ -9,7 +9,7 @@ type SearchPanelProps = {
children
:
React
.
ReactNode
;
children
:
React
.
ReactNode
;
};
};
const
SearchPanel
:
React
.
S
FC
=
({
children
}:
SearchPanelProps
)
=>
{
const
SearchPanel
:
React
.
FC
=
({
children
}:
SearchPanelProps
)
=>
{
return
(
return
(
<
aside
className=
"search-control-panel"
>
<
aside
className=
"search-control-panel"
>
{
React
.
Children
.
map
(
children
,
(
child
,
index
)
=>
{
{
React
.
Children
.
map
(
children
,
(
child
,
index
)
=>
{
...
...
amundsen_application/static/js/components/TableDetail/ColumnList/index.tsx
View file @
2c6c8590
...
@@ -13,7 +13,7 @@ interface ColumnListProps {
...
@@ -13,7 +13,7 @@ interface ColumnListProps {
editUrl
?:
string
;
editUrl
?:
string
;
}
}
const
ColumnList
:
React
.
S
FC
<
ColumnListProps
>
=
({
const
ColumnList
:
React
.
FC
<
ColumnListProps
>
=
({
columns
,
columns
,
editText
,
editText
,
editUrl
,
editUrl
,
...
...
amundsen_application/static/js/components/TableDetail/FrequentUsers/index.tsx
View file @
2c6c8590
...
@@ -56,7 +56,7 @@ export function renderReader(
...
@@ -56,7 +56,7 @@ export function renderReader(
);
);
}
}
const
FrequentUsers
:
React
.
S
FC
<
FrequentUsersProps
>
=
({
const
FrequentUsers
:
React
.
FC
<
FrequentUsersProps
>
=
({
readers
,
readers
,
}:
FrequentUsersProps
)
=>
{
}:
FrequentUsersProps
)
=>
{
if
(
readers
.
length
===
0
)
{
if
(
readers
.
length
===
0
)
{
...
...
amundsen_application/static/js/components/TableDetail/LineageLink/index.tsx
View file @
2c6c8590
...
@@ -12,7 +12,7 @@ export interface LineageLinkProps {
...
@@ -12,7 +12,7 @@ export interface LineageLinkProps {
tableData
:
TableMetadata
;
tableData
:
TableMetadata
;
}
}
const
LineageLink
:
React
.
S
FC
<
LineageLinkProps
>
=
({
const
LineageLink
:
React
.
FC
<
LineageLinkProps
>
=
({
tableData
,
tableData
,
}:
LineageLinkProps
)
=>
{
}:
LineageLinkProps
)
=>
{
const
config
=
AppConfig
.
tableLineage
;
const
config
=
AppConfig
.
tableLineage
;
...
...
amundsen_application/static/js/components/TableDetail/ResourceReportsDropdown/index.tsx
View file @
2c6c8590
...
@@ -7,7 +7,7 @@ export interface ResourceReportProps {
...
@@ -7,7 +7,7 @@ export interface ResourceReportProps {
resourceReports
:
ResourceReport
[];
resourceReports
:
ResourceReport
[];
}
}
const
TableReportsDropdown
:
React
.
S
FC
<
ResourceReportProps
>
=
({
const
TableReportsDropdown
:
React
.
FC
<
ResourceReportProps
>
=
({
resourceReports
,
resourceReports
,
}:
ResourceReportProps
)
=>
{
}:
ResourceReportProps
)
=>
{
if
(
resourceReports
===
null
||
resourceReports
.
length
<
1
)
return
null
;
if
(
resourceReports
===
null
||
resourceReports
.
length
<
1
)
return
null
;
...
...
amundsen_application/static/js/components/TableDetail/SourceLink/index.tsx
View file @
2c6c8590
...
@@ -11,7 +11,7 @@ export interface SourceLinkProps {
...
@@ -11,7 +11,7 @@ export interface SourceLinkProps {
tableSource
:
TableSource
;
tableSource
:
TableSource
;
}
}
const
SourceLink
:
React
.
S
FC
<
SourceLinkProps
>
=
({
const
SourceLink
:
React
.
FC
<
SourceLinkProps
>
=
({
tableSource
,
tableSource
,
}:
SourceLinkProps
)
=>
{
}:
SourceLinkProps
)
=>
{
if
(
tableSource
===
null
||
tableSource
.
source
===
null
)
return
null
;
if
(
tableSource
===
null
||
tableSource
.
source
===
null
)
return
null
;
...
...
amundsen_application/static/js/components/TableDetail/TableHeaderBullets/index.tsx
View file @
2c6c8590
...
@@ -15,7 +15,7 @@ export interface TableHeaderBulletsProps {
...
@@ -15,7 +15,7 @@ export interface TableHeaderBulletsProps {
database
:
string
;
database
:
string
;
}
}
const
TableHeaderBullets
:
React
.
S
FC
<
TableHeaderBulletsProps
>
=
({
const
TableHeaderBullets
:
React
.
FC
<
TableHeaderBulletsProps
>
=
({
cluster
,
cluster
,
database
,
database
,
}:
TableHeaderBulletsProps
)
=>
{
}:
TableHeaderBulletsProps
)
=>
{
...
...
amundsen_application/static/js/components/TableDetail/WriterLink/index.tsx
View file @
2c6c8590
...
@@ -12,7 +12,7 @@ export interface WriterLinkProps {
...
@@ -12,7 +12,7 @@ export interface WriterLinkProps {
tableWriter
:
TableWriter
;
tableWriter
:
TableWriter
;
}
}
const
WriterLink
:
React
.
S
FC
<
WriterLinkProps
>
=
({
const
WriterLink
:
React
.
FC
<
WriterLinkProps
>
=
({
tableWriter
,
tableWriter
,
}:
WriterLinkProps
)
=>
{
}:
WriterLinkProps
)
=>
{
if
(
tableWriter
===
null
||
tableWriter
.
application_url
===
null
)
{
if
(
tableWriter
===
null
||
tableWriter
.
application_url
===
null
)
{
...
...
amundsen_application/static/js/components/common/AvatarLabel/index.tsx
View file @
2c6c8590
...
@@ -14,7 +14,7 @@ export interface AvatarLabelProps {
...
@@ -14,7 +14,7 @@ export interface AvatarLabelProps {
src
?:
string
;
src
?:
string
;
}
}
const
AvatarLabel
:
React
.
S
FC
<
AvatarLabelProps
>
=
({
const
AvatarLabel
:
React
.
FC
<
AvatarLabelProps
>
=
({
avatarClass
,
avatarClass
,
labelClass
,
labelClass
,
label
,
label
,
...
...
amundsen_application/static/js/components/common/BadgeList/index.tsx
View file @
2c6c8590
...
@@ -11,7 +11,7 @@ export interface BadgeListProps {
...
@@ -11,7 +11,7 @@ export interface BadgeListProps {
badges
:
Badge
[];
badges
:
Badge
[];
}
}
const
BadgeList
:
React
.
S
FC
<
BadgeListProps
>
=
({
badges
}:
BadgeListProps
)
=>
{
const
BadgeList
:
React
.
FC
<
BadgeListProps
>
=
({
badges
}:
BadgeListProps
)
=>
{
return
(
return
(
<
span
className=
"badge-list"
>
<
span
className=
"badge-list"
>
{
badges
.
map
((
badge
,
index
)
=>
{
{
badges
.
map
((
badge
,
index
)
=>
{
...
...
amundsen_application/static/js/components/common/Breadcrumb/index.tsx
View file @
2c6c8590
...
@@ -24,7 +24,7 @@ type BreadcrumbDirection = 'left' | 'right';
...
@@ -24,7 +24,7 @@ type BreadcrumbDirection = 'left' | 'right';
export
type
BreadcrumbProps
=
OwnProps
&
MapDispatchToProps
;
export
type
BreadcrumbProps
=
OwnProps
&
MapDispatchToProps
;
export
const
Breadcrumb
:
React
.
S
FC
<
BreadcrumbProps
>
=
(
export
const
Breadcrumb
:
React
.
FC
<
BreadcrumbProps
>
=
(
props
:
BreadcrumbProps
props
:
BreadcrumbProps
)
=>
{
)
=>
{
const
{
direction
=
'left'
,
path
,
text
}
=
props
;
const
{
direction
=
'left'
,
path
,
text
}
=
props
;
...
...
amundsen_application/static/js/components/common/EntityCard/index.tsx
View file @
2c6c8590
...
@@ -11,7 +11,7 @@ export interface EntityCardProps {
...
@@ -11,7 +11,7 @@ export interface EntityCardProps {
sections
:
EntityCardSectionProps
[];
sections
:
EntityCardSectionProps
[];
}
}
const
EntityCard
:
React
.
S
FC
<
EntityCardProps
>
=
({
const
EntityCard
:
React
.
FC
<
EntityCardProps
>
=
({
sections
,
sections
,
}:
EntityCardProps
)
=>
{
}:
EntityCardProps
)
=>
{
const
cardItems
=
sections
.
map
((
entry
,
index
)
=>
{
const
cardItems
=
sections
.
map
((
entry
,
index
)
=>
{
...
...
amundsen_application/static/js/components/common/Flag/index.tsx
View file @
2c6c8590
...
@@ -33,7 +33,7 @@ export function convertText(str: string, caseType: string): string {
...
@@ -33,7 +33,7 @@ export function convertText(str: string, caseType: string): string {
}
}
}
}
const
Flag
:
React
.
S
FC
<
FlagProps
>
=
({
const
Flag
:
React
.
FC
<
FlagProps
>
=
({
caseType
,
caseType
,
text
,
text
,
labelStyle
,
labelStyle
,
...
...
amundsen_application/static/js/components/common/FlashMessage/index.tsx
View file @
2c6c8590
...
@@ -12,7 +12,7 @@ export interface FlashMessageProps {
...
@@ -12,7 +12,7 @@ export interface FlashMessageProps {
onClose
:
(
event
:
React
.
MouseEvent
<
HTMLButtonElement
>
)
=>
void
;
onClose
:
(
event
:
React
.
MouseEvent
<
HTMLButtonElement
>
)
=>
void
;
}
}
const
FlashMessage
:
React
.
S
FC
<
FlashMessageProps
>
=
({
const
FlashMessage
:
React
.
FC
<
FlashMessageProps
>
=
({
iconClass
,
iconClass
,
message
,
message
,
onClose
,
onClose
,
...
...
amundsen_application/static/js/components/common/InfoButton/index.tsx
View file @
2c6c8590
...
@@ -19,7 +19,7 @@ export interface InfoButtonProps {
...
@@ -19,7 +19,7 @@ export interface InfoButtonProps {
size
?:
string
;
size
?:
string
;
}
}
const
InfoButton
:
React
.
S
FC
<
InfoButtonProps
>
=
({
const
InfoButton
:
React
.
FC
<
InfoButtonProps
>
=
({
title
,
title
,
infoText
,
infoText
,
placement
,
placement
,
...
...
amundsen_application/static/js/components/common/Inputs/CheckBoxItem/index.tsx
View file @
2c6c8590
...
@@ -15,7 +15,7 @@ export interface CheckBoxItemProps {
...
@@ -15,7 +15,7 @@ export interface CheckBoxItemProps {
children
:
React
.
ReactNode
;
children
:
React
.
ReactNode
;
}
}
const
CheckBoxItem
:
React
.
S
FC
<
CheckBoxItemProps
>
=
({
const
CheckBoxItem
:
React
.
FC
<
CheckBoxItemProps
>
=
({
checked
=
false
,
checked
=
false
,
disabled
=
false
,
disabled
=
false
,
name
,
name
,
...
...
amundsen_application/static/js/components/common/ResourceListItem/SchemaInfo/index.tsx
View file @
2c6c8590
...
@@ -12,7 +12,7 @@ export interface SchemaInfoProps {
...
@@ -12,7 +12,7 @@ export interface SchemaInfoProps {
placement
?:
string
;
placement
?:
string
;
}
}
const
SchemaInfo
:
React
.
S
FC
<
SchemaInfoProps
>
=
({
const
SchemaInfo
:
React
.
FC
<
SchemaInfoProps
>
=
({
schema
,
schema
,
table
,
table
,
desc
,
desc
,
...
...
amundsen_application/static/js/components/common/SearchBar/InlineSearchResults/ResultItemList/ResultItem/index.tsx
View file @
2c6c8590
...
@@ -14,7 +14,7 @@ export interface ResultItemProps {
...
@@ -14,7 +14,7 @@ export interface ResultItemProps {
type
:
string
;
type
:
string
;
}
}
const
ResultItem
:
React
.
S
FC
<
ResultItemProps
>
=
({
const
ResultItem
:
React
.
FC
<
ResultItemProps
>
=
({
href
,
href
,
iconClass
,
iconClass
,
id
,
id
,
...
...
amundsen_application/static/js/components/common/ShimmeringResourceLoader/index.tsx
View file @
2c6c8590
...
@@ -8,7 +8,7 @@ import './styles.scss';
...
@@ -8,7 +8,7 @@ import './styles.scss';
const
DEFAULT_REPETITION
=
3
;
const
DEFAULT_REPETITION
=
3
;
export
const
ShimmeringResourceItem
:
React
.
S
FC
=
()
=>
{
export
const
ShimmeringResourceItem
:
React
.
FC
=
()
=>
{
return
(
return
(
<
div
className=
"shimmer-resource-loader-item media"
>
<
div
className=
"shimmer-resource-loader-item media"
>
<
div
className=
"media-left media-middle"
>
<
div
className=
"media-left media-middle"
>
...
@@ -26,7 +26,7 @@ export interface ShimmeringResourceLoaderProps {
...
@@ -26,7 +26,7 @@ export interface ShimmeringResourceLoaderProps {
numItems
?:
number
;
numItems
?:
number
;
}
}
const
ShimmeringResourceLoader
:
React
.
S
FC
<
ShimmeringResourceLoaderProps
>
=
({
const
ShimmeringResourceLoader
:
React
.
FC
<
ShimmeringResourceLoaderProps
>
=
({
numItems
=
DEFAULT_REPETITION
,
numItems
=
DEFAULT_REPETITION
,
}:
ShimmeringResourceLoaderProps
)
=>
{
}:
ShimmeringResourceLoaderProps
)
=>
{
return
(
return
(
...
...
amundsen_application/static/js/components/common/ShimmeringTagListLoader/index.tsx
View file @
2c6c8590
...
@@ -12,7 +12,7 @@ type ShimmeringTagItemProps = {
...
@@ -12,7 +12,7 @@ type ShimmeringTagItemProps = {
index
:
number
;
index
:
number
;
};
};
export
const
ShimmeringTagItem
:
React
.
S
FC
<
ShimmeringTagItemProps
>
=
({
export
const
ShimmeringTagItem
:
React
.
FC
<
ShimmeringTagItemProps
>
=
({
index
,
index
,
}:
ShimmeringTagItemProps
)
=>
{
}:
ShimmeringTagItemProps
)
=>
{
return
(
return
(
...
@@ -26,7 +26,7 @@ export interface ShimmeringTagListLoaderProps {
...
@@ -26,7 +26,7 @@ export interface ShimmeringTagListLoaderProps {
numItems
?:
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
;
numItems
?:
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
;
}
}
const
ShimmeringTagListLoader
:
React
.
S
FC
<
ShimmeringTagListLoaderProps
>
=
({
const
ShimmeringTagListLoader
:
React
.
FC
<
ShimmeringTagListLoaderProps
>
=
({
numItems
=
DEFAULT_REPETITION
,
numItems
=
DEFAULT_REPETITION
,
}:
ShimmeringTagListLoaderProps
)
=>
{
}:
ShimmeringTagListLoaderProps
)
=>
{
return
(
return
(
...
...
amundsen_application/static/js/components/common/TabsComponent/index.tsx
View file @
2c6c8590
...
@@ -19,7 +19,7 @@ interface TabInfo {
...
@@ -19,7 +19,7 @@ interface TabInfo {
title
:
string
;
title
:
string
;
}
}
const
TabsComponent
:
React
.
S
FC
<
TabsProps
>
=
({
const
TabsComponent
:
React
.
FC
<
TabsProps
>
=
({
tabs
,
tabs
,
activeKey
,
activeKey
,
defaultTab
,
defaultTab
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment