-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1103 from danskernesdigitalebibliotek/feature/DDF…
…LSBP-486-user-me-skeletons-serverside-clientside Adding skeleton view for Patron page [DDFLSBP-486]
- Loading branch information
Showing
3 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from "react"; | ||
import BasicDetailsSectionSkeleton from "./sections/BasicDetailsSectionSkeleton"; | ||
import ContactInfoSection from "../../components/contact-info-section/ContactInfoSection"; | ||
import { useText } from "../../core/utils/text"; | ||
|
||
const PatronPageSkeleton: React.FC = () => { | ||
const t = useText(); | ||
|
||
return ( | ||
<form className="dpl-patron-page"> | ||
<h1 className="text-header-h1 my-32">{t("patronPageHeaderText")}</h1> | ||
<h2 className="text-header-h4 mt-32 mb-16"> | ||
{t("patronPageBasicDetailsHeaderText")} | ||
</h2> | ||
<BasicDetailsSectionSkeleton /> | ||
<ContactInfoSection | ||
changePatron={() => {}} | ||
patron={null} | ||
inLine={false} | ||
showCheckboxes | ||
/> | ||
</form> | ||
); | ||
}; | ||
|
||
export default PatronPageSkeleton; |
22 changes: 22 additions & 0 deletions
22
src/apps/patron-page/sections/BasicDetailsSectionSkeleton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react"; | ||
|
||
const BasicDetailsSectionSkeleton = () => { | ||
return ( | ||
<div className="dpl-patron-info ssc"> | ||
<div className="dpl-patron-info__label"> | ||
<div className="ssc-head-line w-10" /> | ||
</div> | ||
<div className="dpl-patron-info__text"> | ||
<div className="ssc-head-line w-20 mts" /> | ||
</div> | ||
<div className="dpl-patron-info__label"> | ||
<div className="ssc-head-line w-10" /> | ||
</div> | ||
<div className="dpl-patron-info__text"> | ||
<div className="ssc-head-line w-40 mts" /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default BasicDetailsSectionSkeleton; |