-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update context relations and enhance no favorites ui for user
- Loading branch information
Showing
12 changed files
with
106 additions
and
34 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
33 changes: 33 additions & 0 deletions
33
...t/packages/portal-pages/src/pages/project-page/components/favorites/AppContainerEmpty.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,33 @@ | ||
import styled from 'styled-components'; | ||
import { tokens } from '@equinor/eds-tokens'; | ||
import { Typography } from '@equinor/eds-core-react'; | ||
import { PropsWithChildren } from 'react'; | ||
|
||
const emptyFrameHeight = '14.75rem'; | ||
|
||
const Styled = { | ||
EmptyFrame: styled.div` | ||
border: 1px dashed ${tokens.colors.ui.background__medium.hex}; | ||
border-radius: 0.25rem; | ||
width: 100%; | ||
height: ${emptyFrameHeight}; | ||
padding: ${tokens.spacings.comfortable.medium}; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`, | ||
FrameContent: styled(Typography)` | ||
color: ${tokens.colors.text.static_icons__tertiary.hex}; | ||
text-align: center; | ||
`, | ||
}; | ||
|
||
export const AppContainerEmpty = ({ children }: PropsWithChildren): JSX.Element => { | ||
return ( | ||
<Styled.EmptyFrame> | ||
<Styled.FrameContent group="paragraph" variant="body_short"> | ||
{children} | ||
</Styled.FrameContent> | ||
</Styled.EmptyFrame> | ||
); | ||
}; |
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