-
Notifications
You must be signed in to change notification settings - Fork 18
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 #1822 from Giveth/hotfix_project_additional_attrib…
…utes add isImported And categories to project tab
- Loading branch information
Showing
3 changed files
with
130 additions
and
2 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,30 @@ | ||
import React from 'react'; | ||
import { withTheme } from 'styled-components'; | ||
import { Section, Label } from '@adminjs/design-system'; | ||
|
||
const ProjectUpdates = props => { | ||
const categories = props?.record?.params?.categories; | ||
return ( | ||
<div> | ||
<Label>Project Categories</Label> | ||
<Section> | ||
{categories?.map(category => { | ||
return ( | ||
<div key={category.id}> | ||
<br /> | ||
<Section> | ||
<Label>Name</Label> | ||
<h1> | ||
{category.name || ''} - Id: {category.id} | ||
</h1> | ||
</Section> | ||
</div> | ||
); | ||
})} | ||
</Section> | ||
<br /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default withTheme(ProjectUpdates); |
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