Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_BASEURL = 'http://3.38.93.184:8080/'
REACT_APP_BASEURL = 'https://www.amattang.shop/'
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<link rel="icon" href="%PUBLIC_URL%/mainLogo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<!-- <meta
<meta
http-equiv="Content-Security-Policy"
content="upgrade-insecure-requests"
/> -->
/>
<meta
name="description"
content="Web site created using create-react-app"
Expand Down
22 changes: 12 additions & 10 deletions src/components/CheckListButton/TypeCButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ function TypeCButton({ answer }: IProps) {
// console.log(answer);
return (
<>
<Button.ButtonsCWrapper>
{answer.some((answerItem) => answerItem) &&
answer.map((answerItem, index) => (
<div key={index}>
<Button.TypeCButtonWrapper>
<Button.TypeCImage src={answerItem.url} />
</Button.TypeCButtonWrapper>
</div>
))}
</Button.ButtonsCWrapper>
{answer && (
<Button.ButtonsCWrapper>
{answer.some((answerItem) => answerItem) !== null &&
answer.map((answerItem, index) => (
<div key={index}>
<Button.TypeCButtonWrapper>
<Button.TypeCImage src={answerItem.url} />
</Button.TypeCButtonWrapper>
</div>
))}
</Button.ButtonsCWrapper>
)}
</>
);
}
Expand Down