;
}
-const RadioGroup = ({ label, list, name, value, onChange }: PropsType) => {
+const RadioGroup = ({ label, list, name, value, onChange }: Props) => {
return (
diff --git a/packages/maru-ui/src/Table/Table.type.ts b/packages/maru-ui/src/Table/Table.type.ts
index 85f8087b7..3569f4995 100644
--- a/packages/maru-ui/src/Table/Table.type.ts
+++ b/packages/maru-ui/src/Table/Table.type.ts
@@ -1,6 +1,6 @@
import { CSSProperties, ReactNode } from 'react';
-export interface TablePropsType {
+export interface TableProps {
children: ReactNode;
width: CSSProperties['width'];
height: CSSProperties['height'];
diff --git a/packages/maru-ui/src/Table/Td.tsx b/packages/maru-ui/src/Table/Td.tsx
index 137ca9aac..09188b883 100644
--- a/packages/maru-ui/src/Table/Td.tsx
+++ b/packages/maru-ui/src/Table/Td.tsx
@@ -1,8 +1,7 @@
+import { color, font } from '@maru/theme';
import { flex } from '@maru/utils';
-import { font, color } from '@maru/theme';
-import { CSSProperties, ReactNode } from 'react';
-import { TableOptionType, TablePropsType } from './Table.type';
import styled, { css } from 'styled-components';
+import { TableOptionType, TableProps } from './Table.type';
const Td = ({
children,
@@ -13,7 +12,7 @@ const Td = ({
borderTopRightRadius,
borderBottomLeftRadius,
borderBottomRightRadius,
-}: TablePropsType) => {
+}: TableProps) => {
return (
`
+const StyledTd = styled.div<{ option: TableOptionType }>`
${flex({ alignItems: 'center', justifyContent: 'center' })}
color: ${color.gray900};
diff --git a/packages/maru-ui/src/Table/Th.tsx b/packages/maru-ui/src/Table/Th.tsx
index dfe6a714e..68ea87e2c 100644
--- a/packages/maru-ui/src/Table/Th.tsx
+++ b/packages/maru-ui/src/Table/Th.tsx
@@ -1,7 +1,7 @@
+import { color, font } from '@maru/theme';
import { flex } from '@maru/utils';
-import { font, color } from '@maru/theme';
-import { TableOptionType, TablePropsType } from './Table.type';
import styled, { css } from 'styled-components';
+import { TableOptionType, TableProps } from './Table.type';
const Th = ({
children,
@@ -12,7 +12,7 @@ const Th = ({
borderTopRightRadius,
borderBottomLeftRadius,
borderBottomRightRadius,
-}: TablePropsType) => {
+}: TableProps) => {
return (
{
+interface Props extends HTMLAttributes {
children: ReactNode;
color?: string;
fontType: Font;
@@ -12,7 +12,7 @@ interface PropsType extends HTMLAttributes {
textAlign?: CSSProperties['textAlign'];
}
-const Text = ({ children, color, fontType, textAlign, width }: PropsType) => {
+const Text = ({ children, color, fontType, textAlign, width }: Props) => {
return (
{children}
@@ -23,5 +23,5 @@ const Text = ({ children, color, fontType, textAlign, width }: PropsType) => {
export default Text;
const StyledText = styled.p<{ fontType: Font }>`
- ${({ fontType }) => font[fontType]}
+ ${(props) => props.fontType && font[props.fontType]}
`;
diff --git a/packages/maru-ui/src/Textarea/Textarea.tsx b/packages/maru-ui/src/Textarea/Textarea.tsx
index e66b374fe..84a6765b4 100644
--- a/packages/maru-ui/src/Textarea/Textarea.tsx
+++ b/packages/maru-ui/src/Textarea/Textarea.tsx
@@ -2,12 +2,12 @@ import { color, font } from '@maru/theme';
import { TextareaHTMLAttributes } from 'react';
import styled from 'styled-components';
-interface PropsType extends TextareaHTMLAttributes {
+interface Props extends TextareaHTMLAttributes {
limit: number;
label: string;
}
-const Textarea = ({ limit, label, name, value, onChange }: PropsType) => {
+const Textarea = ({ limit, label, name, value, onChange }: Props) => {
const textValue = value as string;
return (
diff --git a/packages/maru-utils/styles/flex.ts b/packages/maru-utils/styles/flex.ts
index ae790722d..81654448a 100644
--- a/packages/maru-utils/styles/flex.ts
+++ b/packages/maru-utils/styles/flex.ts
@@ -1,13 +1,13 @@
-import { css } from 'styled-components';
import type { CSSProperties } from 'react';
+import { css } from 'styled-components';
-interface PropsType {
+interface Props {
flexDirection?: CSSProperties['flexDirection'];
justifyContent?: CSSProperties['justifyContent'];
alignItems?: CSSProperties['alignItems'];
}
-const flex = ({ flexDirection, justifyContent, alignItems }: PropsType) => {
+const flex = ({ flexDirection, justifyContent, alignItems }: Props) => {
return css`
display: flex;
flex-direction: ${flexDirection};