-
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.
Add CheckItem component and update Vote component with new styles (#41)
* Add CheckItem component and enhance Vote component with validation checks * Enhance Vote component by adding icons to text fields and improving layout with flexbox
- Loading branch information
1 parent
6432181
commit 02b3157
Showing
3 changed files
with
120 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
|
||
export default function CheckItem({ label, checked }) { | ||
if (checked) { | ||
return ( | ||
<mdui-checkbox disabled checked checked-icon="done"> | ||
{label} | ||
</mdui-checkbox> | ||
); | ||
} | ||
return ( | ||
<mdui-checkbox disabled unchecked-icon="close"> | ||
{label} | ||
</mdui-checkbox> | ||
); | ||
} |
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