apps/web: fix Layout/Element types
This commit is contained in:
parent
6f31814513
commit
7f5707aa99
@ -1,6 +1,5 @@
|
||||
/* eslint-disable func-style */
|
||||
import { min } from '@/styles/mq';
|
||||
import type { ReactNode } from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { Flex } from 'ui/grid';
|
||||
|
||||
@ -24,9 +23,9 @@ export function Head({
|
||||
addon,
|
||||
htmlFor,
|
||||
}: {
|
||||
addon?: ReactNode;
|
||||
htmlFor: string;
|
||||
title: ReactNode;
|
||||
readonly addon?: React.ReactNode;
|
||||
readonly htmlFor: string;
|
||||
readonly title: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<Flex alignItems={['center']} flexDirection={['row']} justifyContent={['space-between']}>
|
||||
@ -36,6 +35,6 @@ export function Head({
|
||||
);
|
||||
}
|
||||
|
||||
export function Container({ children }: { children: ReactNode }) {
|
||||
export function Container({ children }: { readonly children: React.ReactNode }) {
|
||||
return <Flex flexDirection="column">{children}</Flex>;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user