Skip to content

Commit

Permalink
♻️ 비어 있는 스타일 객체를 사용하지 않도록 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
ttaerrim committed Nov 28, 2023
1 parent ed9a5dc commit ddb6813
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { UserChip } from '@/components';
import { sansBold14 } from '@/styles/font.css';
import { Member } from '@/types';

import * as styles from './index.css';
Expand All @@ -11,7 +12,7 @@ export function GroupWrapper({
<div className={styles.groupWrapper}>
<UserChip username={nickname} profileSrc={profilePicture} />
{/* TODO: group 받아와서 적용 */}
<span className={styles.group}>부스트캠프 웹모바일 8기</span>
<span className={sansBold14}>부스트캠프 웹모바일 8기</span>
</div>
);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Button } from '@/components';
import { sansRegular16 } from '@/styles/font.css';
import { Mogaco } from '@/types';

import { GroupWrapper } from './GroupWrapper';
Expand Down Expand Up @@ -39,7 +40,7 @@ export function MogacoInfo({
maxHumanCount={maxHumanCount}
address={address}
/>
<p className={styles.contents}>{contents}</p>
<p className={sansRegular16}>{contents}</p>
</div>
<Button
fullWidth
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Label } from '@/components';
import { sansBold24 } from '@/styles/font.css';
import { MogacoTypes } from '@/types';

import * as styles from './index.css';
Expand All @@ -12,7 +13,7 @@ export function TitleWrapper({
<Label theme="primary" shape="fill">
{status}
</Label>
<span className={styles.title}>{title}</span>
<span className={sansBold24}>{title}</span>
</div>
);
}
11 changes: 1 addition & 10 deletions app/frontend/src/components/Sidebar/Contents/Mogaco/index.css.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { style } from '@vanilla-extract/css';

import { vars } from '@/styles';
import {
sansBold14,
sansBold24,
sansRegular12,
sansRegular16,
} from '@/styles/font.css';
import { sansRegular12 } from '@/styles/font.css';

export const container = style({
display: 'flex',
Expand All @@ -16,8 +11,6 @@ export const container = style({
color: vars.color.grayscaleBlack,
padding: '2rem',
});
export const contents = style([sansRegular16, {}]);
export const group = style([sansBold14, {}]);
export const groupWrapper = style({
display: 'flex',
alignItems: 'center',
Expand Down Expand Up @@ -49,8 +42,6 @@ export const infoWrapper = style({
flexDirection: 'column',
gap: '0.4rem',
});

export const title = style([sansBold24, {}]);
export const titleWrapper = style({
display: 'flex',
gap: '0.4rem',
Expand Down

0 comments on commit ddb6813

Please sign in to comment.