Skip to content

Commit

Permalink
Feat: 에러 문구 컴포넌트 추가(for hanhee)
Browse files Browse the repository at this point in the history
  • Loading branch information
abyss-s committed Sep 13, 2024
1 parent ce79862 commit 91ccf2a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/assets/errorInfo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions src/components/errorText/errorText.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import styled from "styled-components";
import InfoIcon from "/public/assests/images/icons/errorInfo.svg?react";

const ErrorTextContainer = styled.div`
display: flex;
align-items: center;
gap: 8px;
height: 20px;
`;

const ErrorTextMessage = styled.span`
color: var(--point-color);
font-size: 18px;
`;

const ErrorText = ({ text }) => {
return (
<ErrorTextContainer>
<InfoIcon />
<ErrorTextMessage>{text}</ErrorTextMessage>
</ErrorTextContainer>
);
};

export default ErrorText;

0 comments on commit 91ccf2a

Please sign in to comment.