-
Notifications
You must be signed in to change notification settings - Fork 24
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
5 changed files
with
197 additions
and
184 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
38 changes: 38 additions & 0 deletions
38
packages/web-console/src/components/Sidebar/navigation.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,38 @@ | ||
import styled from "styled-components" | ||
import { PrimaryToggleButton } from ".." | ||
|
||
type NavigationProps = Readonly<{ | ||
selected: boolean | ||
}> | ||
|
||
export const Navigation = styled(PrimaryToggleButton)<NavigationProps>` | ||
display: flex; | ||
flex-direction: column; | ||
flex: 0 0 4rem; | ||
align-items: center; | ||
justify-content: center; | ||
cursor: pointer; | ||
& > span { | ||
margin-left: 0 !important; | ||
} | ||
& > :not(:first-child) { | ||
margin-top: 0.3rem; | ||
} | ||
` | ||
|
||
export const DisabledNavigation = styled.div` | ||
display: flex; | ||
position: relative; | ||
height: 100%; | ||
width: 100%; | ||
flex: 0 0 4rem; | ||
align-items: center; | ||
justify-content: center; | ||
&:disabled { | ||
pointer-events: none; | ||
cursor: default; | ||
} | ||
` |
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 @@ | ||
export type ViewMode = "chart" | "grid" |
Oops, something went wrong.