Skip to content

Commit

Permalink
conflict 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
YoommY2 committed Aug 14, 2022
2 parents 73ee8f8 + 54b6aa3 commit 2050812
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/Modals/WriterModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const WriterModal = ({
});

useEffect(() => {
if (title == 'beverage' || title == 'food') {
if (title === 'beverage' || title === 'food') {
setIsFood(true);
}
}, []);
Expand All @@ -117,7 +117,7 @@ const WriterModal = ({
<ModalBlock>
{
<ScheduleSticker
src={delivery == 'weekly' ? Weekly : WeeklyMonthly}
src={delivery === 'weekly' ? Weekly : WeeklyMonthly}
/>
}
{custom && <CustomSticker src={Custom} />}
Expand Down
Binary file added src/assets/MainPageAssets/FounderLogoVideo.mp4
Binary file not shown.
12 changes: 6 additions & 6 deletions src/components/FounderLogo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled from "styled-components";
import styled from 'styled-components';

export const Logo = styled.img`
position : static;
width : 100%;
z-index:2;
`
export const Logo = styled.video`
position: static;
width: 100%;
z-index: 2;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react';
import styled from 'styled-components';
import DownArrow from '../../../assets/ItemDetailPageAssets/DownArrow.png';
import UpArrow from '../../../assets/ItemDetailPageAssets/UpArrow.png';
import { color, fontsize, fontWeight } from '../../../styles/theme';
import { color } from '../../../styles/theme';
import Rated from '../../StarRating/Rated';
import { css } from 'styled-components';

Expand Down Expand Up @@ -42,7 +42,7 @@ const ItemReviewCard = ({
};

const changeView = () => {
if (sizes.reviewHeight == '56px') {
if (sizes.reviewHeight === '56px') {
// 닫혀있는경우
setSizes({
cardHeight: 'auto',
Expand All @@ -64,10 +64,10 @@ const ItemReviewCard = ({
<Writer>{userId}님의 후기</Writer>
</DateWriterWrapper>

{sizes.reviewHeight == '56px' ? (
{sizes.reviewHeight === '56px' ? (
<>
<Image src={main_img}></Image>
{tag != '' ? <TagWrapper>{tagShow()}</TagWrapper> : <div></div>}
{tag !== '' ? <TagWrapper>{tagShow()}</TagWrapper> : <div></div>}
<ReviewPreview sizes={sizes}>{text}</ReviewPreview>
<Writer>
더보기
Expand All @@ -81,7 +81,7 @@ const ItemReviewCard = ({
{photoShow()}
</ImageContainer>
<Rated rating={star} />
{tag != '' ? (
{tag !== '' ? (
<TagWrapper margin={'30.38px 0px'}>{tagShow()}</TagWrapper>
) : (
<div></div>
Expand Down Expand Up @@ -196,7 +196,7 @@ const MoreButton = styled.img`

const ImageContainer = styled.div`
${(props) =>
props.num == 1
props.num === 1
? css`
display: flex;
justify-content: center;
Expand Down
4 changes: 2 additions & 2 deletions src/components/SurveyComponents/Survey.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useRef, useEffect, useCallback } from 'react';
import { useState, useRef, useEffect } from 'react';
import answerSet from '../../assets/json/answerSet.json';
import answerValue from '../../assets/json/answerValue.json';
import SurveyPart from './SurveyPart';
Expand Down Expand Up @@ -53,7 +53,7 @@ const Survey = () => {
console.log(localStorage.accesstoken);

function SubmitSurvey() {
if (answerSet[0].answer_num == 1) {
if (answerSet[0].answer_num === 1) {
setGender(true);
} else {
setGender(false);
Expand Down
1 change: 0 additions & 1 deletion src/pages/BrandDetailPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const BrandDetailPage = () => {
}, []);

if (!brandDetaildata) return null;
console.log(brandDetaildata);

return (
<>
Expand Down
12 changes: 7 additions & 5 deletions src/pages/MainPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState } from 'react';
import FounderLogo from '../assets/MainPageAssets/logo.png';
import FounderLogoVideo from '../assets/MainPageAssets/FounderLogoVideo.mp4';
import Banner from '../components/MainPageComponents/Banner';
import styled from 'styled-components';
import TopBar from '../components/TopBarComponents/TopBar';
Expand Down Expand Up @@ -50,7 +50,7 @@ const MainPage = () => {

//초기 상태 유저를 위해
var token =
localStorage.accesstoken == undefined
localStorage.accesstoken === undefined
? ``
: `Bearer ${localStorage.accesstoken}`;

Expand Down Expand Up @@ -90,10 +90,12 @@ const MainPage = () => {

if (!recommendationData) return null;

console.log(recommendationData);
return (
<>
<Logo src={FounderLogo} />
<Logo autoPlay muted loop width="100%">
<source src={FounderLogoVideo} type="video/mp4" />
</Logo>

<TopBar position={'sticky'} main={'main'} />
<WidthWrapper>
<Wrapper>
Expand Down Expand Up @@ -133,7 +135,7 @@ const MainPage = () => {
<TagArray tag={content.type_tag_arr} key={content.id} />
</RowWrapper>

{content.type_product != '' && (
{content.type_product !== '' && (
<GridWrapper>
{content.type_product.map(
({
Expand Down
3 changes: 0 additions & 3 deletions src/pages/MyPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ import { KAKAO_AUTH_URL } from '../components/SharedComponents/KaKaoAuth';

const MyPage = () => {
const [isLoggedIn, setIsLoggedIn] = useRecoilState(loginState); //recoil 적용
const [username, setUsername] = useState('Username');
const [id, setId] = useState('UserId');
const gender = useRecoilValue(GenderState);
const [email, setEmail] = useState('[email protected]');
const access = localStorage.getItem('accesstoken');
const [userData, setuserData] = useState(null);

Expand Down

0 comments on commit 2050812

Please sign in to comment.