Apply prettier changes

This commit is contained in:
William Tran 2021-05-24 17:49:44 -04:00
parent 49b2fd6b2f
commit ffbfdac772
2 changed files with 53 additions and 19 deletions

View File

@ -36,10 +36,10 @@ export const OrganizedContent: React.FC<Props> = ({
<div className={styles.organizedContent}> <div className={styles.organizedContent}>
<div className={styles.nav}> <div className={styles.nav}>
{headings.map((heading, index) => ( {headings.map((heading, index) => (
<div className={index === currentIndex ? styles.selectedHeadingArea : ''}> <div className={index === currentIndex ? styles.selectedHeadingArea : ''} key={heading.url}>
<div className={styles.navOption + ' ' + (index === currentIndex ? styles.selectedHeading : <div className={styles.navOption + ' ' + (index === currentIndex ? styles.selectedHeading :
heading.name === "Read All" ? styles.readAll : '')} heading.name === "Read All" ? styles.readAll : '')}
key={heading.url}> >
<Link url={heading.url}>{heading.name}</Link> <Link url={heading.url}>{heading.name}</Link>
</div> </div>
<div className={styles.divider}></div> <div className={styles.divider}></div>

View File

@ -48,7 +48,7 @@ export function MiniEventCardDemo() {
description={<AfterHoursContent />} description={<AfterHoursContent />}
/> />
</div> </div>
) );
} }
export function OrganizedContentDemo() { export function OrganizedContentDemo() {
@ -56,28 +56,62 @@ export function OrganizedContentDemo() {
{ {
name: "1. Name", name: "1. Name",
url: "a", url: "a",
key: "a", content: (
content: <div> 1. The name of this organization shall be the "Computer Science Club of the University of Waterloo".</div>, <div>
{" "}
1. The name of this organization shall be the &quot;Computer Science
Club of the University of Waterloo&quot;.
</div>
),
}, },
{ {
name: "2. Purpose", name: "2. Purpose",
url: "b", url: "b",
key: "b", content: (
content: <div> The Club is organized and will be operated exclusively for educational and scientific purposes in furtherance of: <div>
promoting an increased knowledge of computer science and its applications; {" "}
promoting a greater interest in computer science and its applications; and The Club is organized and will be operated exclusively for educational
providing a means of communication between persons having interest in computer science. and scientific purposes in furtherance of: promoting an increased
The above purposes will be fulfilled by the organization of discussions and lectures with professionals and academics in the field of computer science and related fields, the maintenance of a library of materials related to computer science, the maintenance of an office containing the library as an aid to aim (1.3) above, and such other means as decided by the club membership.</div>, knowledge of computer science and its applications; promoting a
greater interest in computer science and its applications; and
providing a means of communication between persons having interest in
computer science. The above purposes will be fulfilled by the
organization of discussions and lectures with professionals and
academics in the field of computer science and related fields, the
maintenance of a library of materials related to computer science, the
maintenance of an office containing the library as an aid to aim (1.3)
above, and such other means as decided by the club membership.
</div>
),
}, },
{ {
name: "3. Membership", name: "3. Membership",
url: "c", url: "c",
key: "c", content: (
content: <div> In compliance with MathSoc regulations and in recognition of the club being primarily targeted at undergraduate students, full membership is open to all Social Members of the Mathematics Society and restricted to the same. <div>
Affiliate membership in this Club shall be open to all members of the University community, including alumni. Affiliate members shall have all the rights of full members except for the rights of voting and holding executive office. {" "}
Membership shall be accounted for on a termly basis, where a term begins at the start of lectures in Winter or Spring, and at the start of Orientation Week in Fall. In compliance with MathSoc regulations and in recognition of the club
A person is not a member until he or she has paid the current membership fee and has been enrolled in the member database. The termly membership fee is set from time to time by the Executive. Under conditions approved by the Executive, a member who purchases a membership at the end of the current term may be given membership for both the current term and the next term. If the membership fee changes, then this does not affect the validity of any membership terms already paid for. being primarily targeted at undergraduate students, full membership is
The Club may grant access to its systems, either free of charge or for a fee, to members of the University community in order to offer them services. This does not constitute membership.</div>, open to all Social Members of the Mathematics Society and restricted
to the same. Affiliate membership in this Club shall be open to all
members of the University community, including alumni. Affiliate
members shall have all the rights of full members except for the
rights of voting and holding executive office. Membership shall be
accounted for on a termly basis, where a term begins at the start of
lectures in Winter or Spring, and at the start of Orientation Week in
Fall. A person is not a member until he or she has paid the current
membership fee and has been enrolled in the member database. The
termly membership fee is set from time to time by the Executive. Under
conditions approved by the Executive, a member who purchases a
membership at the end of the current term may be given membership for
both the current term and the next term. If the membership fee
changes, then this does not affect the validity of any membership
terms already paid for. The Club may grant access to its systems,
either free of charge or for a fee, to members of the University
community in order to offer them services. This does not constitute
membership.
</div>
),
}, },
{ {
name: "Consequences of Unacceptable Behavior", name: "Consequences of Unacceptable Behavior",
@ -91,8 +125,8 @@ export function OrganizedContentDemo() {
name: "Read All", name: "Read All",
url: "readall", url: "readall",
key: "readall", key: "readall",
content: <>{sections.map((section => section.content))}</> content: <div> CODEY FAN CLUB </div>,
} };
sections = [readAllSection, ...sections]; sections = [readAllSection, ...sections];