-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better naming for Link + styling admin area
- Loading branch information
1 parent
796e5d0
commit 8f1c28b
Showing
7 changed files
with
405 additions
and
349 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* TODO: in Vulcan Meteor we already have a Card component, we will need to make it | ||
* available in Vulcan NPM as well | ||
* | ||
* This component will be removed when this is done | ||
*/ | ||
|
||
import { getReadableFields } from "@vulcanjs/schema"; | ||
|
||
export const ItemCard = ({ document, model }) => { | ||
const readableFields = getReadableFields(model.schema); | ||
return ( | ||
<div> | ||
{readableFields.map((field) => | ||
document[field] ? ( | ||
<p key={document._id + field}> | ||
{" "} | ||
<strong>{field}:</strong> {document[field]}{" "} | ||
</p> | ||
) : null | ||
)} | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.