-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a457332
commit c9a6038
Showing
4 changed files
with
37 additions
and
4 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,8 @@ | ||
.blank-state-container { | ||
position: absolute; | ||
background-color: red; | ||
width: 64px; | ||
height: 64px; | ||
left: 688px; | ||
top: 318px; | ||
} |
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,25 @@ | ||
import React from 'react'; | ||
|
||
const surveyBlankStateTestIds = { | ||
blankStateContainer: 'blankStateContainer', | ||
emoji: 'blankStateEmoji', | ||
description: 'blankStateDescription', | ||
}; | ||
|
||
export interface SurveyBlankStateProps extends React.HTMLAttributes<HTMLDivElement> { | ||
emoji: string; | ||
description: string; | ||
} | ||
|
||
const SurveyBlankState = ({ emoji, description, ...props }: SurveyBlankStateProps) => { | ||
return ( | ||
<div className="blank-state-container" data-test-id={surveyBlankStateTestIds.blankStateContainer} {...props}> | ||
<div className="blank-state-emoji" data-test-id={surveyBlankStateTestIds.emoji}> | ||
{emoji} | ||
</div> | ||
<h2 data-test-id={surveyBlankStateTestIds.description}>{description}</h2> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SurveyBlankState; |
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