Skip to content

Commit

Permalink
ui: frontsite: Update Overridable opening hours header and details co…
Browse files Browse the repository at this point in the history
…mponent
  • Loading branch information
sakshamarora1 authored and kpsherva committed Mar 4, 2024
1 parent a36ca90 commit e806aa0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/overridableMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { LiteratureKeyword } from "./overridden/frontsite/Document/DocumentDetai
import { Identifiers } from "./overridden/frontsite/Document/DocumentDetails/DocumentMetadataTabs/Identifiers";
import { DocumentConference } from "./overridden/frontsite/Document/DocumentDetails/DocumentMetadataTabs/DocumentConference";
import { DocumentItemsHeader } from "./overridden/frontsite/Document/DocumentDetails/DocumentItemsHeader";
import { OpeningHoursDetails } from "./overridden/frontsite/OpeningHours/OpeningHoursDetails";

export const overriddenCmps = {
"Backoffice.PatronDetails.Metadata": PatronMetadata,
Expand All @@ -50,4 +51,5 @@ export const overriddenCmps = {
"DocumentMetadataTabs.Identifiers": Identifiers,
"DocumentConference.layout": DocumentConference,
"DocumentDetails.DocumentItems.header": DocumentItemsHeader,
"OpeningHours.details": OpeningHoursDetails,
};
24 changes: 24 additions & 0 deletions ui/src/overridden/frontsite/OpeningHours/OpeningHoursDetails.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from "react";
import { Header, Message } from "semantic-ui-react";

export const OpeningHoursDetails = () => {
return (
<>
<Header as="h2">Opening hours</Header>
<Message info>
<Message.Content>
The CERN community can access the library, located in <b>52/1-052, </b>
<b>
<u>24/7</u>
</b>
!
<br />
Staff is available to help at the Library and Bookshop Welcome Desk, located
in
<b> 52/1-054</b>, open as per the schedule below :
<br />
</Message.Content>
</Message>
</>
);
};

0 comments on commit e806aa0

Please sign in to comment.