Skip to content

Commit

Permalink
style: header zindex (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
blcklamb authored Oct 24, 2023
1 parent 540db56 commit 8a3180c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/common/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const LogoWrapper = styled.header`
position: fixed;
top: 0px;
background: ${COLOR.WHITE};
z-index: 1;
z-index: 0.5;
`;

export default Header;
2 changes: 2 additions & 0 deletions src/components/common/HeaderWithButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const LogoWrapper = styled.header`
padding: 1rem 12rem;
background: ${COLOR.WHITE};
z-index: 1;
position: fixed;
top: 0px;
`;

const IconButton = styled.button`
Expand Down
25 changes: 15 additions & 10 deletions src/components/provider/ProviderGiftList.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import React, { useEffect, useState } from "react";
import { useState } from "react";
import List from "components/common/List";
import { GiftList } from "types/giftList.type";
import EditGiftModal from "./EditGiftModal";
// import giftList from "data/giftData";
import { useParams } from "react-router-dom";
import useGift from "hooks/queries/useGift";
import styled from "styled-components";

export default function ProviderGiftList() {
const { targetId } = useParams();
Expand All @@ -27,13 +26,15 @@ export default function ProviderGiftList() {
return (
<>
{data && (
<List
giftList={data.giftList}
couponList={data.couponList}
type="editable"
onClickClose={handleDelete}
onClickEdit={handleEdit}
/>
<ListWrapper>
<List
giftList={data.giftList}
couponList={data.couponList}
type="editable"
onClickClose={handleDelete}
onClickEdit={handleEdit}
/>
</ListWrapper>
)}
{data && editedGiftId && (
<EditGiftModal
Expand All @@ -45,3 +46,7 @@ export default function ProviderGiftList() {
</>
);
}

const ListWrapper = styled.div`
padding-bottom: 20rem;
`;

0 comments on commit 8a3180c

Please sign in to comment.