summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-07-18 17:43:18 +0200
committerOskar Nyberg <oskar@mullvad.net>2022-07-22 14:36:05 +0200
commit3777bd80332637375b7423327e9073a288cd8dc1 (patch)
tree38765d46f3021c8bf461c68bc6f70af2b3ea4009
parent9736b27dcf1ac6c5c9a011890bfac9a381feb6de (diff)
downloadmullvadvpn-3777bd80332637375b7423327e9073a288cd8dc1.tar.xz
mullvadvpn-3777bd80332637375b7423327e9073a288cd8dc1.zip
Add CellNavigationButton
-rw-r--r--gui/src/renderer/components/cell/CellButton.tsx12
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/src/renderer/components/cell/CellButton.tsx b/gui/src/renderer/components/cell/CellButton.tsx
index 6c6beb6d83..070032bd37 100644
--- a/gui/src/renderer/components/cell/CellButton.tsx
+++ b/gui/src/renderer/components/cell/CellButton.tsx
@@ -3,6 +3,7 @@ import styled from 'styled-components';
import { colors } from '../../../config.json';
import { CellDisabledContext } from './Container';
+import { Icon } from './Label';
import { CellSectionContext } from './Section';
interface IStyledCellButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
@@ -49,3 +50,14 @@ export const CellButton = styled(
);
}),
)({});
+
+export function CellNavigationButton(props: ICellButtonProps) {
+ const { children, ...otherProps } = props;
+
+ return (
+ <CellButton {...otherProps}>
+ {children}
+ <Icon height={12} width={7} source="icon-chevron" />
+ </CellButton>
+ );
+}