Skip to content

Commit e5d5e72

Browse files
author
Sine Jespersen
committed
add mt to listempty
1 parent 88896b6 commit e5d5e72

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/stories/Blocks/status-userprofile/statusUserprofile.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ export const StatusUserprofile = (props: StatusUserprofileProps) => {
3535
</div>
3636
))
3737
) : (
38-
<ListEmpty text="Du har i øjeblikket 0 fysiske lån" />
38+
<ListEmpty
39+
className="mt-16"
40+
text="Du har i øjeblikket 0 fysiske lån"
41+
/>
3942
)}
4043
</div>
4144
<div className="status-userprofile__column">
@@ -57,7 +60,10 @@ export const StatusUserprofile = (props: StatusUserprofileProps) => {
5760
</div>
5861
))
5962
) : (
60-
<ListEmpty text="Du har i øjebilkket 0 reserveringer" />
63+
<ListEmpty
64+
className="mt-16"
65+
text="Du har i øjebilkket 0 reserveringer"
66+
/>
6167
)}
6268
</div>
6369
</div>

src/stories/Library/Lists/list-empty/ListEmpty.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ import { Links, LinksProps } from "../../links/Links";
33
interface ListEmptyProps {
44
text: string;
55
links?: LinksProps[];
6+
className: string;
67
}
78

8-
const ListEmpty = ({ text, links }: ListEmptyProps) => {
9+
const ListEmpty = ({ text, links, className }: ListEmptyProps) => {
910
return (
10-
<div className="dpl-list-empty">
11+
<div className={`dpl-list-empty ${className}`}>
1112
{text}
1213
{links && (
1314
<div className="dpl-list-empty__links">

0 commit comments

Comments
 (0)