Skip to content

Commit

Permalink
feat: PetList name width 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieonn committed Dec 27, 2024
1 parent 99c043d commit 98ecb33
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import styled from "styled-components";
import { Text } from "../../../../../components/texts/Text";
import { colors } from "../../../../../style/color";
import { Divider } from "../../../../../components";
import Rating from "../../../../../components/rating/Rating";
import theme from "../../../../../style/theme";
import { formatDashDate } from "../../../../../utils/dataformat";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ export const DogName = styled.p<{ active: boolean }>`
font-weight: ${({ active }) => (active ? "600" : "400")};
color: ${({ active }) => (active ? "#000000" : "#A0A0A0")};
text-align: center;
width: 50px;
/* width: 50px; */
white-space: pre-wrap;
`;
4 changes: 2 additions & 2 deletions src/utils/dataformat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export const formatDate = (isoDate?: string): string => {

export const formatDashDate = (isoDate?: string): string => {
if (!isoDate) return "";
const transDat = isoDate.replace(/-/g, ".");
return transDat;
const transDot = isoDate.replace(/-/g, ".");
return transDot;
};

0 comments on commit 98ecb33

Please sign in to comment.