Skip to content

Commit

Permalink
Merge branch 'fe-dev' into feature/#474
Browse files Browse the repository at this point in the history
  • Loading branch information
pakxe authored Aug 22, 2024
2 parents 91a3336 + ff3bf13 commit a221d0c
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 10 deletions.
4 changes: 4 additions & 0 deletions HDesign/src/components/Flex/Flex.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const flexStyle = ({
margin = '0',
width = 'auto',
height = 'auto',
minHeight,
backgroundColor,
theme,
...rest
Expand All @@ -30,6 +31,7 @@ export const flexStyle = ({
margin,
width,
height,
minHeight,
...rest,

backgroundColor: (() => {
Expand All @@ -38,6 +40,8 @@ export const flexStyle = ({
return theme?.colors.white;
case 'gray':
return theme?.colors.grayContainer;
case 'lightGray':
return theme?.colors.lightGrayContainer;
default:
return 'none';
}
Expand Down
3 changes: 2 additions & 1 deletion HDesign/src/components/Flex/Flex.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Theme} from '@theme/theme.type';

export type FlexDirectionType = 'row' | 'column' | 'rowReverse' | 'columnReverse';
export type FlexDirectionStrictType = 'row' | 'column' | 'row-reverse' | 'column-reverse';
export type FlexBackgroundColor = 'gray' | 'white';
export type FlexBackgroundColor = 'gray' | 'white' | 'lightGray';

export interface FlexProps {
justifyContent?: 'flexStart' | 'center' | 'flexEnd' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly';
Expand All @@ -16,4 +16,5 @@ export interface FlexProps {
height?: string;
backgroundColor?: FlexBackgroundColor;
theme?: Theme;
minHeight?: string;
}
3 changes: 2 additions & 1 deletion HDesign/src/layouts/MainLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {PropsWithChildren} from 'react';

import {Flex} from '..';

type MainLayoutBackground = 'white' | 'gray';
type MainLayoutBackground = 'white' | 'gray' | 'lightGray';

interface MainLayoutProps extends PropsWithChildren {
backgroundColor?: MainLayoutBackground;
Expand All @@ -18,6 +18,7 @@ export function MainLayout({backgroundColor, children}: MainLayoutProps) {
gap="1rem"
width="100%"
height="100%"
minHeight="100vh"
>
{children}
</Flex>
Expand Down
3 changes: 0 additions & 3 deletions client/src/GlobalStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,5 @@ export const GlobalStyle = css`
#root {
display: flex;
flex-direction: column;
height: 100%;
background-color: #f1f0f5;
}
`;
2 changes: 2 additions & 0 deletions client/src/hooks/useSetBillInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ const useSetBillInput = ({setIsAddEditableItem}: UseSetBillInputProps): UseSetBi
},
},
);
} else if (!isEmptyTitle && !isEmptyPrice) {
setIsAddEditableItem(false);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const CompleteCreateEventPage = () => {
const homePageUrl = getEventPageUrlByEnvironment(eventId ?? '', 'home');

return (
<MainLayout>
<MainLayout backgroundColor="white">
<TopNav />
<Title
title="행사 κ°œμ‹œ"
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/CreateEventPage/SetEventNamePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const SetEventNamePage = () => {
};

return (
<MainLayout>
<MainLayout backgroundColor="white">
<TopNav>
<Back />
</TopNav>
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/CreateEventPage/SetEventPasswordPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const SetEventPasswordPage = () => {
useSetEventPasswordPage();

return (
<MainLayout>
<MainLayout backgroundColor="white">
<TopNav>
<Back />
</TopNav>
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/EventPage/AdminPage/AdminPage.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const receiptStyle = () =>
display: 'flex',
flexDirection: 'column',
gap: '1rem',
paddingBottom: '8.75rem',
paddingBottom: '2rem',
});

export const titleAndListButtonContainerStyle = () =>
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/EventPage/HomePage/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const HomePage = () => {
const {totalExpenseAmount} = useTotalExpenseAmountStore();

return (
<div>
<div style={{paddingBottom: '2rem'}}>
<Title title={eventName} price={totalExpenseAmount} />
<Tabs tabsContainerStyle={{gap: '1rem'}}>
<Tab label="전체 μ§€μΆœ λ‚΄μ—­" content={<StepList />} />
Expand Down

0 comments on commit a221d0c

Please sign in to comment.