Skip to content

Commit fb5758f

Browse files
authored
Merge pull request #32 from MBTips/feature/공통약관-ui-컴포넌트-개발
feat: 이용약관 ui 컴포넌트 구현
2 parents 9c1328a + 47c1762 commit fb5758f

File tree

5 files changed

+91
-1
lines changed

5 files changed

+91
-1
lines changed

package-lock.json

Lines changed: 68 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"autoprefixer": "^10.4.20",
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1",
17+
"react-router-dom": "^7.1.5",
1718
"tailwindcss": "^4.0.3"
1819
},
1920
"devDependencies": {

public/icon/arrow_right.svg

Lines changed: 3 additions & 0 deletions
Loading

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ function App() {
22
return <></>;
33
}
44

5-
export default App;
5+
export default App;

src/components/StandardTerms.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const StandardTerms = () => {
2+
return (
3+
<div className="flex justify-between bg-white px-5 py-4 w-full h-[56px]">
4+
<h3 className="font-medium text-2lg text-gray-900">이용약관</h3>
5+
{/* App.tsx에서 React.routes 설정이 완료되면 react-router-dom의 Link로 변경 예정 */}
6+
<a href="/terms">
7+
<img
8+
src="/icon/arrow_right.svg"
9+
alt="이용약관 보이기"
10+
width={24}
11+
height={24}
12+
/>
13+
</a>
14+
</div>
15+
);
16+
};
17+
18+
export default StandardTerms;

0 commit comments

Comments
 (0)