Skip to content

Commit

Permalink
add mt to listempty
Browse files Browse the repository at this point in the history
  • Loading branch information
sinejespersen committed Jun 7, 2023
1 parent 88896b6 commit e5d5e72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/stories/Blocks/status-userprofile/statusUserprofile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export const StatusUserprofile = (props: StatusUserprofileProps) => {
</div>
))
) : (
<ListEmpty text="Du har i øjeblikket 0 fysiske lån" />
<ListEmpty
className="mt-16"
text="Du har i øjeblikket 0 fysiske lån"
/>
)}
</div>
<div className="status-userprofile__column">
Expand All @@ -57,7 +60,10 @@ export const StatusUserprofile = (props: StatusUserprofileProps) => {
</div>
))
) : (
<ListEmpty text="Du har i øjebilkket 0 reserveringer" />
<ListEmpty
className="mt-16"
text="Du har i øjebilkket 0 reserveringer"
/>
)}
</div>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/stories/Library/Lists/list-empty/ListEmpty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { Links, LinksProps } from "../../links/Links";
interface ListEmptyProps {
text: string;
links?: LinksProps[];
className: string;
}

const ListEmpty = ({ text, links }: ListEmptyProps) => {
const ListEmpty = ({ text, links, className }: ListEmptyProps) => {
return (
<div className="dpl-list-empty">
<div className={`dpl-list-empty ${className}`}>
{text}
{links && (
<div className="dpl-list-empty__links">
Expand Down

0 comments on commit e5d5e72

Please sign in to comment.