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
Hide 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 = {
text
:
string
;
};
const
CodeBlock
:
React
.
S
FC
<
CodeBlockProps
>
=
({
text
}:
CodeBlockProps
)
=>
{
const
CodeBlock
:
React
.
FC
<
CodeBlockProps
>
=
({
text
}:
CodeBlockProps
)
=>
{
return
(
<
CopyBlock
text=
{
text
}
...
...
amundsen_application/static/js/components/Feedback/index.tsx
View file @
2c6c8590
...
...
@@ -14,12 +14,12 @@ import * as Constants from './constants';
import
'./styles.scss'
;
export
interface
FeedbackProps
{
content
?:
React
.
S
FC
<
any
>
;
content
?:
React
.
FC
<
any
>
;
title
?:
string
;
}
interface
FeedbackState
{
content
:
React
.
S
FC
<
any
>
;
content
:
React
.
FC
<
any
>
;
feedbackType
:
FeedbackType
;
isOpen
:
boolean
;
}
...
...
amundsen_application/static/js/components/NotFoundPage/index.tsx
View file @
2c6c8590
...
...
@@ -9,7 +9,7 @@ import './styles.scss';
import
Breadcrumb
from
'components/common/Breadcrumb'
;
const
NotFoundPage
:
React
.
S
FC
<
any
>
=
()
=>
{
const
NotFoundPage
:
React
.
FC
<
any
>
=
()
=>
{
return
(
<
DocumentTitle
title=
"404 Page Not Found - Amundsen"
>
<
div
className=
"container not-found-page"
>
...
...
amundsen_application/static/js/components/SearchPage/SearchPanel/index.tsx
View file @
2c6c8590
...
...
@@ -9,7 +9,7 @@ type SearchPanelProps = {
children
:
React
.
ReactNode
;
};
const
SearchPanel
:
React
.
S
FC
=
({
children
}:
SearchPanelProps
)
=>
{
const
SearchPanel
:
React
.
FC
=
({
children
}:
SearchPanelProps
)
=>
{
return
(
<
aside
className=
"search-control-panel"
>
{
React
.
Children
.
map
(
children
,
(
child
,
index
)
=>
{
...
...
amundsen_application/static/js/components/TableDetail/ColumnList/index.tsx
View file @
2c6c8590
...
...
@@ -13,7 +13,7 @@ interface ColumnListProps {
editUrl
?:
string
;
}
const
ColumnList
:
React
.
S
FC
<
ColumnListProps
>
=
({
const
ColumnList
:
React
.
FC
<
ColumnListProps
>
=
({
columns
,
editText
,
editUrl
,
...
...
amundsen_application/static/js/components/TableDetail/FrequentUsers/index.tsx
View file @
2c6c8590
...
...
@@ -56,7 +56,7 @@ export function renderReader(
);
}
const
FrequentUsers
:
React
.
S
FC
<
FrequentUsersProps
>
=
({
const
FrequentUsers
:
React
.
FC
<
FrequentUsersProps
>
=
({
readers
,
}:
FrequentUsersProps
)
=>
{
if
(
readers
.
length
===
0
)
{
...
...
amundsen_application/static/js/components/TableDetail/LineageLink/index.tsx
View file @
2c6c8590
...
...
@@ -12,7 +12,7 @@ export interface LineageLinkProps {
tableData
:
TableMetadata
;
}
const
LineageLink
:
React
.
S
FC
<
LineageLinkProps
>
=
({
const
LineageLink
:
React
.
FC
<
LineageLinkProps
>
=
({
tableData
,
}:
LineageLinkProps
)
=>
{
const
config
=
AppConfig
.
tableLineage
;
...
...
amundsen_application/static/js/components/TableDetail/ResourceReportsDropdown/index.tsx
View file @
2c6c8590
...
...
@@ -7,7 +7,7 @@ export interface ResourceReportProps {
resourceReports
:
ResourceReport
[];
}
const
TableReportsDropdown
:
React
.
S
FC
<
ResourceReportProps
>
=
({
const
TableReportsDropdown
:
React
.
FC
<
ResourceReportProps
>
=
({
resourceReports
,
}:
ResourceReportProps
)
=>
{
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 {
tableSource
:
TableSource
;
}
const
SourceLink
:
React
.
S
FC
<
SourceLinkProps
>
=
({
const
SourceLink
:
React
.
FC
<
SourceLinkProps
>
=
({
tableSource
,
}:
SourceLinkProps
)
=>
{
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 {
database
:
string
;
}
const
TableHeaderBullets
:
React
.
S
FC
<
TableHeaderBulletsProps
>
=
({
const
TableHeaderBullets
:
React
.
FC
<
TableHeaderBulletsProps
>
=
({
cluster
,
database
,
}:
TableHeaderBulletsProps
)
=>
{
...
...
amundsen_application/static/js/components/TableDetail/WriterLink/index.tsx
View file @
2c6c8590
...
...
@@ -12,7 +12,7 @@ export interface WriterLinkProps {
tableWriter
:
TableWriter
;
}
const
WriterLink
:
React
.
S
FC
<
WriterLinkProps
>
=
({
const
WriterLink
:
React
.
FC
<
WriterLinkProps
>
=
({
tableWriter
,
}:
WriterLinkProps
)
=>
{
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 {
src
?:
string
;
}
const
AvatarLabel
:
React
.
S
FC
<
AvatarLabelProps
>
=
({
const
AvatarLabel
:
React
.
FC
<
AvatarLabelProps
>
=
({
avatarClass
,
labelClass
,
label
,
...
...
amundsen_application/static/js/components/common/BadgeList/index.tsx
View file @
2c6c8590
...
...
@@ -11,7 +11,7 @@ export interface BadgeListProps {
badges
:
Badge
[];
}
const
BadgeList
:
React
.
S
FC
<
BadgeListProps
>
=
({
badges
}:
BadgeListProps
)
=>
{
const
BadgeList
:
React
.
FC
<
BadgeListProps
>
=
({
badges
}:
BadgeListProps
)
=>
{
return
(
<
span
className=
"badge-list"
>
{
badges
.
map
((
badge
,
index
)
=>
{
...
...
amundsen_application/static/js/components/common/Breadcrumb/index.tsx
View file @
2c6c8590
...
...
@@ -24,7 +24,7 @@ type BreadcrumbDirection = 'left' | 'right';
export
type
BreadcrumbProps
=
OwnProps
&
MapDispatchToProps
;
export
const
Breadcrumb
:
React
.
S
FC
<
BreadcrumbProps
>
=
(
export
const
Breadcrumb
:
React
.
FC
<
BreadcrumbProps
>
=
(
props
:
BreadcrumbProps
)
=>
{
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 {
sections
:
EntityCardSectionProps
[];
}
const
EntityCard
:
React
.
S
FC
<
EntityCardProps
>
=
({
const
EntityCard
:
React
.
FC
<
EntityCardProps
>
=
({
sections
,
}:
EntityCardProps
)
=>
{
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 {
}
}
const
Flag
:
React
.
S
FC
<
FlagProps
>
=
({
const
Flag
:
React
.
FC
<
FlagProps
>
=
({
caseType
,
text
,
labelStyle
,
...
...
amundsen_application/static/js/components/common/FlashMessage/index.tsx
View file @
2c6c8590
...
...
@@ -12,7 +12,7 @@ export interface FlashMessageProps {
onClose
:
(
event
:
React
.
MouseEvent
<
HTMLButtonElement
>
)
=>
void
;
}
const
FlashMessage
:
React
.
S
FC
<
FlashMessageProps
>
=
({
const
FlashMessage
:
React
.
FC
<
FlashMessageProps
>
=
({
iconClass
,
message
,
onClose
,
...
...
amundsen_application/static/js/components/common/InfoButton/index.tsx
View file @
2c6c8590
...
...
@@ -19,7 +19,7 @@ export interface InfoButtonProps {
size
?:
string
;
}
const
InfoButton
:
React
.
S
FC
<
InfoButtonProps
>
=
({
const
InfoButton
:
React
.
FC
<
InfoButtonProps
>
=
({
title
,
infoText
,
placement
,
...
...
amundsen_application/static/js/components/common/Inputs/CheckBoxItem/index.tsx
View file @
2c6c8590
...
...
@@ -15,7 +15,7 @@ export interface CheckBoxItemProps {
children
:
React
.
ReactNode
;
}
const
CheckBoxItem
:
React
.
S
FC
<
CheckBoxItemProps
>
=
({
const
CheckBoxItem
:
React
.
FC
<
CheckBoxItemProps
>
=
({
checked
=
false
,
disabled
=
false
,
name
,
...
...
amundsen_application/static/js/components/common/ResourceListItem/SchemaInfo/index.tsx
View file @
2c6c8590
...
...
@@ -12,7 +12,7 @@ export interface SchemaInfoProps {
placement
?:
string
;
}
const
SchemaInfo
:
React
.
S
FC
<
SchemaInfoProps
>
=
({
const
SchemaInfo
:
React
.
FC
<
SchemaInfoProps
>
=
({
schema
,
table
,
desc
,
...
...
amundsen_application/static/js/components/common/SearchBar/InlineSearchResults/ResultItemList/ResultItem/index.tsx
View file @
2c6c8590
...
...
@@ -14,7 +14,7 @@ export interface ResultItemProps {
type
:
string
;
}
const
ResultItem
:
React
.
S
FC
<
ResultItemProps
>
=
({
const
ResultItem
:
React
.
FC
<
ResultItemProps
>
=
({
href
,
iconClass
,
id
,
...
...
amundsen_application/static/js/components/common/ShimmeringResourceLoader/index.tsx
View file @
2c6c8590
...
...
@@ -8,7 +8,7 @@ import './styles.scss';
const
DEFAULT_REPETITION
=
3
;
export
const
ShimmeringResourceItem
:
React
.
S
FC
=
()
=>
{
export
const
ShimmeringResourceItem
:
React
.
FC
=
()
=>
{
return
(
<
div
className=
"shimmer-resource-loader-item media"
>
<
div
className=
"media-left media-middle"
>
...
...
@@ -26,7 +26,7 @@ export interface ShimmeringResourceLoaderProps {
numItems
?:
number
;
}
const
ShimmeringResourceLoader
:
React
.
S
FC
<
ShimmeringResourceLoaderProps
>
=
({
const
ShimmeringResourceLoader
:
React
.
FC
<
ShimmeringResourceLoaderProps
>
=
({
numItems
=
DEFAULT_REPETITION
,
}:
ShimmeringResourceLoaderProps
)
=>
{
return
(
...
...
amundsen_application/static/js/components/common/ShimmeringTagListLoader/index.tsx
View file @
2c6c8590
...
...
@@ -12,7 +12,7 @@ type ShimmeringTagItemProps = {
index
:
number
;
};
export
const
ShimmeringTagItem
:
React
.
S
FC
<
ShimmeringTagItemProps
>
=
({
export
const
ShimmeringTagItem
:
React
.
FC
<
ShimmeringTagItemProps
>
=
({
index
,
}:
ShimmeringTagItemProps
)
=>
{
return
(
...
...
@@ -26,7 +26,7 @@ export interface ShimmeringTagListLoaderProps {
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
,
}:
ShimmeringTagListLoaderProps
)
=>
{
return
(
...
...
amundsen_application/static/js/components/common/TabsComponent/index.tsx
View file @
2c6c8590
...
...
@@ -19,7 +19,7 @@ interface TabInfo {
title
:
string
;
}
const
TabsComponent
:
React
.
S
FC
<
TabsProps
>
=
({
const
TabsComponent
:
React
.
FC
<
TabsProps
>
=
({
tabs
,
activeKey
,
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