Skip to content
Snippets Groups Projects
Commit b648a7b9 authored by insert's avatar insert
Browse files

Large desc option.

parent fe75f5a6
Branches
No related merge requests found
...@@ -3,7 +3,11 @@ import styled, { css } from "styled-components"; ...@@ -3,7 +3,11 @@ import styled, { css } from "styled-components";
import { Children } from "../../../types/Preact"; import { Children } from "../../../types/Preact";
const CategoryBase = styled.div` interface BaseProps {
readonly largeDescription?: boolean;
}
const CategoryBase = styled.div<BaseProps>`
height: 54px; height: 54px;
padding: 8px 12px; padding: 8px 12px;
border-radius: 6px; border-radius: 6px;
...@@ -24,7 +28,15 @@ const CategoryBase = styled.div` ...@@ -24,7 +28,15 @@ const CategoryBase = styled.div`
font-size: 14px; font-size: 14px;
.description { .description {
font-size: 11px; ${(props) =>
props.largeDescription
? css`
font-size: 14px;
`
: css`
font-size: 11px;
`}
font-weight: 400; font-weight: 400;
a:hover { a:hover {
...@@ -48,7 +60,7 @@ const CategoryBase = styled.div` ...@@ -48,7 +60,7 @@ const CategoryBase = styled.div`
`} `}
`; `;
interface Props { interface Props extends BaseProps {
icon?: Children; icon?: Children;
children?: Children; children?: Children;
description?: Children; description?: Children;
...@@ -61,11 +73,12 @@ export default function CategoryButton({ ...@@ -61,11 +73,12 @@ export default function CategoryButton({
icon, icon,
children, children,
description, description,
largeDescription,
onClick, onClick,
action, action,
}: Props) { }: Props) {
return ( return (
<CategoryBase onClick={onClick}> <CategoryBase onClick={onClick} largeDescription={largeDescription}>
{icon} {icon}
<div class="content"> <div class="content">
{children} {children}
......
...@@ -136,6 +136,7 @@ export const Account = observer(() => { ...@@ -136,6 +136,7 @@ export const Account = observer(() => {
value value
) )
} }
largeDescription
action="chevron" action="chevron"
onClick={() => onClick={() =>
openScreen({ openScreen({
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment