-
Notifications
You must be signed in to change notification settings - Fork 2
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 #2926 from the-deep/feature/test-tag
TestTag component for test project
- Loading branch information
Showing
8 changed files
with
181 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react'; | ||
import { | ||
Tag, | ||
} from '@the-deep/deep-ui'; | ||
import { IoInformationCircleOutline } from 'react-icons/io5'; | ||
import { _cs } from '@togglecorp/fujs'; | ||
|
||
import styles from './styles.css'; | ||
|
||
interface Props { | ||
className?: string; | ||
} | ||
|
||
function TestTag(props: Props) { | ||
const { className } = props; | ||
|
||
return ( | ||
<Tag | ||
className={_cs(className, styles.testTag)} | ||
spacing="compact" | ||
icons={( | ||
<IoInformationCircleOutline | ||
title="This project has been set as test project by the admin of the project." | ||
/> | ||
)} | ||
> | ||
Test Project | ||
</Tag> | ||
); | ||
} | ||
|
||
export default TestTag; |
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,8 @@ | ||
.test-tag { | ||
--tag-flex-order: 4; | ||
align-items: center; | ||
align-self: center; | ||
flex-shrink: 0; | ||
order: var(--tag-flex-order); | ||
background: var(--dui-color-complement3); | ||
} |
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
Oops, something went wrong.