improvement(plugins-page): Refactor using card

I've (hackily so) written my own plugin card to replace the previous
usage of the `Checkbox` component.
Beware, ye who tread these lands, for they are decrepid.
This commit is contained in:
Alyxia Sother
2022-03-29 17:09:52 +02:00
committed by Paul Makles
parent 13216263fd
commit f33abb3467
2 changed files with 95 additions and 17 deletions

View File

@@ -3,7 +3,7 @@ import styled, { css } from "styled-components/macro";
import { Children } from "../../types/Preact";
const CheckboxBase = styled.label`
export const CheckboxBase = styled.label`
gap: 4px;
z-index: 1;
display: flex;
@@ -52,7 +52,7 @@ const CheckboxDescription = styled.span`
color: var(--secondary-foreground);
`;
const Checkmark = styled.div<{ checked: boolean; contrast?: boolean }>`
export const Checkmark = styled.div<{ checked: boolean; contrast?: boolean }>`
margin: 4px;
width: 24px;
height: 24px;