Skip to content

Commit

Permalink
Merge pull request #39 from depromeet/refactor/28/convention-refactor
Browse files Browse the repository at this point in the history
컨벤션에 따른 재정의
sean2337 authored Jul 15, 2024
2 parents cfeeb22 + 485e7d5 commit 9751c72
Showing 9 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/login/LoginPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SocialLoginButton } from "@/component/login/socialLoginButton";
import { SocialLoginButton } from "@/component/login";
import { DefaultLayout } from "@/layout/DefaultLayout";

export function LoginPage() {
File renamed without changes.
2 changes: 2 additions & 0 deletions src/component/common/appBar/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { AppBar } from "./AppBar";
export type { AppBarProps } from "./AppBar";
File renamed without changes.
1 change: 1 addition & 0 deletions src/component/common/typography/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Typography } from "./Typography";
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { css } from "@emotion/react";

import { LoginSpriteSvg } from "@/component/login/loginSpriteSvg";
import { LoginSpriteSvg } from "./LoginSpriteSvg";

import { loginTypeProvider, loginBtnProps, backgroundColors } from "@/types/loginType";

export function SocialLoginButton({ type, handler }: loginBtnProps) {
1 change: 1 addition & 0 deletions src/component/login/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { SocialLoginButton } from "./SocialLoginButton";
5 changes: 3 additions & 2 deletions src/layout/DefaultLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { css } from "@emotion/react";
import { Fragment, PropsWithChildren } from "react";
import { Fragment, ReactNode } from "react";
import { AppBar, AppBarProps } from "@/component/common/appBar";

type DefaultLayoutProps = PropsWithChildren<AppBarProps> & {
type DefaultLayoutProps = AppBarProps & {
appBarVisible?: boolean;
children: ReactNode;
};

export function DefaultLayout({ children, title, appBarVisible = true, LeftComp, RightComp }: DefaultLayoutProps) {

0 comments on commit 9751c72

Please sign in to comment.