-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪟 🐛 Show Datatypes Correctly (#15558)
* airbyte_type and format are now correctly passed along * refactor * Remove nullable as it is unused
- Loading branch information
1 parent
9967af9
commit 64ece7e
Showing
5 changed files
with
40 additions
and
61 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
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
24 changes: 2 additions & 22 deletions
24
airbyte-webapp/src/views/Connection/CatalogTree/components/DataTypeCell.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 |
---|---|---|
@@ -1,29 +1,9 @@ | ||
import React from "react"; | ||
import { FormattedMessage } from "react-intl"; | ||
import styled from "styled-components"; | ||
|
||
import { Cell } from "components/SimpleTableComponents"; | ||
|
||
interface DataTypeCellProps { | ||
nullable?: boolean; | ||
} | ||
|
||
const Description = styled.div` | ||
color: ${({ theme }) => theme.greyColor40}; | ||
font-size: 11px; | ||
`; | ||
|
||
const DataTypeCell: React.FC<DataTypeCellProps> = ({ children, nullable }) => { | ||
return ( | ||
<Cell> | ||
{children} | ||
{nullable && ( | ||
<Description> | ||
<FormattedMessage id="form.nullable" /> | ||
</Description> | ||
)} | ||
</Cell> | ||
); | ||
const DataTypeCell: React.FC = ({ children }) => { | ||
return <Cell>{children}</Cell>; | ||
}; | ||
|
||
export default DataTypeCell; |