-
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.
- Loading branch information
Showing
6 changed files
with
123 additions
and
78 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
client/packages/components/src/components/app-context-message/AppContextMessage.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { useFavorites } from '@portal/core'; | ||
import styled from 'styled-components'; | ||
import { MessageCard } from '@portal/ui'; | ||
|
||
const Styles = { | ||
AppMessageWrapper: styled.div` | ||
padding: 1rem 0; | ||
`, | ||
}; | ||
|
||
const APP_COUNT = 15; | ||
|
||
export const AppContextMessage = () => { | ||
const { apps } = useFavorites(); | ||
return ( | ||
<> | ||
{apps && apps.length < APP_COUNT && ( | ||
<Styles.AppMessageWrapper> | ||
<MessageCard | ||
title="Application and Context Expansion" | ||
messages={[ | ||
"Currently, we're striving to expand the availability of applications to accommodate both facility and project contexts.", | ||
"Due to data and certain applications lacking support for all context types, we're unable to offer all applications for all contexts at this time.", | ||
]} | ||
/> | ||
</Styles.AppMessageWrapper> | ||
)} | ||
</> | ||
); | ||
}; |
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