Skip to content

Commit

Permalink
fix: backgroundImage을 styled-components에서만 사용하도록 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
bluedog129 committed Dec 9, 2024
1 parent bfd11ea commit ce143e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/Common/RoomButton/RoomButton.styles.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import styled from 'styled-components';
// import CardBackground from '@/styles/Icon/CardBackGround.png';

export const RoomButtonWrapper = styled.div<{ backgroundImage: string }>`
export const RoomButtonWrapper = styled.div<{ $backgroundImage: string }>`
width: 163px;
height: 139px;
border-radius: 12px;
background-image: url(${(props) => props.backgroundImage});
background-image: url(${(props) => props.$backgroundImage});
`;

export const RoomButtonLayout = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion components/Common/RoomButton/RoomButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const RoomButton = ({
artboards[Math.floor(Math.random() * artboards.length)];

return (
<RoomButtonWrapper backgroundImage={randomArtboard.src}>
<RoomButtonWrapper $backgroundImage={randomArtboard.src}>
<RoomButtonLayout>
<RoomTitle>{title}</RoomTitle>
<RoomPerson>
Expand Down

0 comments on commit ce143e7

Please sign in to comment.