-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 #2455 from KelvinTegelaar/dev
Dev to release
- Loading branch information
Showing
51 changed files
with
5,242 additions
and
2,378 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 |
---|---|---|
@@ -1 +1 @@ | ||
5.6.2 | ||
5.7.0 |
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,49 @@ | ||
import React from 'react' | ||
import { | ||
CAccordionBody, | ||
CAccordionHeader, | ||
CAccordionItem, | ||
CCard, | ||
CCardBody, | ||
CCardFooter, | ||
CCardHeader, | ||
CCardTitle, | ||
} from '@coreui/react' | ||
import Skeleton from 'react-loading-skeleton' | ||
import PropTypes from 'prop-types' | ||
|
||
export default function CippAccordionItem({ | ||
title, | ||
titleType = 'normal', | ||
CardButton, | ||
children, | ||
isFetching, | ||
}) { | ||
return ( | ||
<CAccordionItem> | ||
<CAccordionHeader>{title}</CAccordionHeader> | ||
<CAccordionBody> | ||
<CCard> | ||
<CCardHeader> | ||
<CCardTitle> | ||
{titleType === 'big' ? <h3 className="underline mb-3">{title}</h3> : title} | ||
</CCardTitle> | ||
</CCardHeader> | ||
<CCardBody className="my-3"> | ||
{isFetching && <Skeleton />} | ||
{children} | ||
</CCardBody> | ||
<CCardFooter>{CardButton}</CCardFooter> | ||
</CCard> | ||
</CAccordionBody> | ||
</CAccordionItem> | ||
) | ||
} | ||
|
||
CippAccordionItem.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
titleType: PropTypes.string, | ||
CardButton: PropTypes.element.isRequired, | ||
children: PropTypes.element.isRequired, | ||
isFetching: PropTypes.bool.isRequired, | ||
} |
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
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.