-
Notifications
You must be signed in to change notification settings - Fork 5
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 #89 from cthit/feature/cubsec-checkbox
- Loading branch information
Showing
5 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
frontend/src/common/components/event-form/elements/cubsec.element.jsx
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,29 @@ | ||
import { | ||
DigitCheckbox, | ||
useDigitFormField, | ||
} from "@cthit/react-digit-components"; | ||
|
||
const Cubsec = ({ preLinkLabel, linkLabel }) => { | ||
const cubsecValues = useDigitFormField("cubsec"); | ||
|
||
return ( | ||
<DigitCheckbox | ||
{...cubsecValues} | ||
label={ | ||
<p> | ||
{preLinkLabel} | ||
<a | ||
href="https://www.chalmers.se/utbildning/studera-hos-oss/studentliv/arrangemang-i-sektionslokaler/formular-for-anmalan-av-arrangemang/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
{linkLabel} | ||
</a> | ||
</p> | ||
} | ||
size={{ width: "100%" }} | ||
/> | ||
); | ||
}; | ||
|
||
export default Cubsec; |
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
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