Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
My SU
frontend
Commits
8143c9dc
Commit
8143c9dc
authored
Nov 09, 2020
by
TJHeeringa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added dummy page for Campus Card
parent
75e2d4e5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
2 deletions
+56
-2
src/App/Components/PageLayout/Header/NavTabs.js
src/App/Components/PageLayout/Header/NavTabs.js
+12
-1
src/App/Components/PageLayout/SideBar/PublicSideBar.js
src/App/Components/PageLayout/SideBar/PublicSideBar.js
+6
-0
src/App/Pages/Home/CampusCard.js
src/App/Pages/Home/CampusCard.js
+30
-0
src/App/Routing/Authenticated/Authorized.js
src/App/Routing/Authenticated/Authorized.js
+8
-1
No files found.
src/App/Components/PageLayout/Header/NavTabs.js
View file @
8143c9dc
...
...
@@ -87,7 +87,18 @@ const AssociationsNavTabs = ({ association_memberships, url, onImgLoad }) => {
}
const
logo
=
association_membership
.
association
.
logo
;
const
label
=
association
.
name
.
slice
(
0
,
association
.
name
.
indexOf
(
"
"
));
let
label
;
if
(
association
.
short_name
)
{
label
=
association
.
short_name
;
}
else
{
if
(
association
.
name
.
length
>
15
){
const
len
=
association
.
name
.
length
;
label
=
association
.
name
.
slice
(
association
.
name
.
indexOf
(
"
"
,
len
-
15
)
+
1
);
}
else
{
label
=
association
.
name
;
}
}
return
(
<
Tab
value
=
{
subpath
}
...
...
src/App/Components/PageLayout/SideBar/PublicSideBar.js
View file @
8143c9dc
import
EventIcon
from
"
@material-ui/icons/Event
"
;
import
HomeIcon
from
"
@material-ui/icons/Home
"
;
import
PaymentIcon
from
"
@material-ui/icons/Payment
"
;
import
Drawer
from
"
App/Components/Lists/Drawer/Drawer
"
;
import
React
from
"
react
"
;
...
...
@@ -20,6 +21,11 @@ const PublicDrawer = (props) => {
primary
:
"
Calendar
"
,
to
:
"
/protected/calendar
"
},
{
icon
:
<
PaymentIcon
/>
,
primary
:
"
Campus Card
"
,
to
:
"
/protected/campus-card
"
}
];
return
(
<
Drawer
items
=
{
data
}
/
>
...
...
src/App/Pages/Home/CampusCard.js
0 → 100644
View file @
8143c9dc
import
{
Container
}
from
"
@material-ui/core
"
;
import
Typography
from
"
@material-ui/core/Typography
"
;
import
React
from
"
react
"
;
import
Block
from
"
../../Components/PageLayout/Content/Block
"
;
const
CampusCard
=
(
props
)
=>
{
return
(
<
Container
>
<
Block
>
<
Typography
variant
=
{
"
h4
"
}
>
Campus
Card
<
/Typography
>
<
hr
className
=
{
"
box-title-separator
"
}
/
>
<
Typography
>
Explantion
of
campus
card
<
/Typography
>
<
br
/><
br
/>
<
Typography
>
List
of
campus
card
options
with
payment
link
<
/Typography
>
<
/Block
>
<
Block
>
<
Typography
variant
=
{
"
h4
"
}
>
'
verenigingsheffing
'
<
/Typography
>
<
hr
className
=
{
"
box-title-separator
"
}
/
>
<
Typography
>
Explantion
of
'
verenigingsheffing
'
<
/Typography
>
<
br
/><
br
/>
<
Typography
>
List
of
'
verenigingsheffing
'
to
be
paid
with
payment
link
<
/Typography
>
<
Typography
>
Don
'
t create links without having a campus card</Typography>
</Block>
</Container>
);
};
export default CampusCard;
\ No newline at end of file
src/App/Routing/Authenticated/Authorized.js
View file @
8143c9dc
...
...
@@ -9,12 +9,13 @@ import {useGet} from "restful-react";
import
{
useAuth
}
from
"
../../Contexts/Authentication
"
;
import
{
useLayout
}
from
"
../../Contexts/PageLayout
"
;
import
CollectiveCalendar
from
"
../../Pages/Calendar/CollectiveCalendar
"
;
import
CampusCard
from
"
../../Pages/Home/CampusCard
"
;
import
Home
from
"
../../Pages/Home/Home
"
;
import
Settings
from
"
../../Pages/Profile/Settings
"
;
import
SharedProfile
from
"
../../Pages/Profile/SharedProfile
"
;
import
{
Associations
}
from
"
../../Pages/Search/Associations
"
;
import
AssociationRoutes
from
"
./MyAssociations/Association
"
;
import
CollectiveCalendar
from
"
../../Pages/Calendar/CollectiveCalendar
"
;
export
const
AuthorizedRoutes
=
(
props
)
=>
{
...
...
@@ -113,6 +114,12 @@ export const AuthorizedRoutes = (props) => {
association_memberships
=
{
sunmember
.
association_memberships
}
/>
}
/>
<
Route
exact
path
=
{
url
+
"
/campus-card
"
}
render
=
{()
=>
<
CampusCard
preferred_profile
=
{
sunmember
.
preferred_profile
}
/>
}
/>
<
Route
exact
path
=
{
url
+
"
/associations/add
"
}
render
=
{()
=>
<
Associations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment