feat: persist board card fields (#1566)

Closes #1538
This commit is contained in:
Thaïs
2023-09-15 00:06:15 +02:00
committed by GitHub
parent 6462505a86
commit 2461a387ce
27 changed files with 541 additions and 342 deletions
+5 -4
View File
@@ -1,7 +1,8 @@
import type { ComponentProps, ReactNode } from 'react';
import type { ReactNode } from 'react';
import styled from '@emotion/styled';
type OwnProps = ComponentProps<'div'> & {
type OwnProps = {
className?: string;
leftComponent?: ReactNode;
rightComponent?: ReactNode;
bottomComponent?: ReactNode;
@@ -40,14 +41,14 @@ const StyledRightSection = styled.div`
`;
export function TopBar({
className,
leftComponent,
rightComponent,
bottomComponent,
displayBottomBorder = true,
...props
}: OwnProps) {
return (
<StyledContainer {...props}>
<StyledContainer className={className}>
<StyledTopBar displayBottomBorder={displayBottomBorder}>
<StyledLeftSection>{leftComponent}</StyledLeftSection>
<StyledRightSection>{rightComponent}</StyledRightSection>