Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
♻️ #289 UploadTitleArea を CSS Modules に置換え
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed May 30, 2023
1 parent 521c184 commit 44f1031
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.wrapper {
font-family: Roboto, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 28px;
color: var(--text-color);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare const styles: {
readonly wrapper: string;
};
export = styles;
14 changes: 2 additions & 12 deletions src/components/Upload/UploadTitleArea/UploadTitleArea.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import type { FC } from 'react';
import styled from 'styled-components';
import { mixins } from '../../../styles';
import { type Language } from '../../../types';
import { assertNever } from '../../../utils';

const _Wrapper = styled.div`
font-family: Roboto, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 28px;
color: ${mixins.colors.text};
`;
import styles from './UploadTitleArea.module.css';

type Props = {
language: Language;
Expand All @@ -33,5 +23,5 @@ const text = (language: Language): Text => {
};

export const UploadTitleArea: FC<Props> = ({ language }) => (
<_Wrapper>{text(language)}</_Wrapper>
<div className={styles.wrapper}>{text(language)}</div>
);

0 comments on commit 44f1031

Please sign in to comment.