-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add various fixes and adjustments to ProjectStatus * Changelog
- Loading branch information
Showing
15 changed files
with
130 additions
and
68 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
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
22 changes: 7 additions & 15 deletions
22
...ramework/ProjectWebParts/src/components/ProjectStatus/PublishedStatus/PublishedStatus.tsx
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,28 +1,20 @@ | ||
import strings from 'ProjectWebPartsStrings' | ||
import { WebPartTitle } from 'pp365-shared-library' | ||
import React, { FC } from 'react' | ||
import { useProjectStatusContext } from '../context' | ||
import styles from '../ProjectStatus.module.scss' | ||
import { CheckmarkSquare24Filled } from '@fluentui/react-icons' | ||
import { Shimmer } from '@fluentui/react' | ||
|
||
export const PublishedStatus: FC = () => { | ||
const { state } = useProjectStatusContext() | ||
const context = useProjectStatusContext() | ||
|
||
return ( | ||
<Shimmer isDataLoaded={state.isDataLoaded}> | ||
{state.selectedReport?.published ? ( | ||
<div className={styles.publishedStatus}> | ||
<div className={styles.publishedStatusIcon}> | ||
<CheckmarkSquare24Filled /> | ||
</div> | ||
<WebPartTitle title={strings.PublishedStatusReport} /> | ||
</div> | ||
) : ( | ||
<div className={styles.publishedStatus}> | ||
<WebPartTitle title={strings.NotPublishedStatusReport} /> | ||
<div className={styles.publishedStatus}> | ||
{context.state.selectedReport?.published && ( | ||
<div className={styles.publishedStatusIcon}> | ||
<CheckmarkSquare24Filled /> | ||
</div> | ||
)} | ||
</Shimmer> | ||
<WebPartTitle title={context.state.reportStatus} /> | ||
</div> | ||
) | ||
} |
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.