Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bodysch-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
org
BodySCH
bodysch-frontend
Commits
0d463e0f
Commit
0d463e0f
authored
4 years ago
by
Chif Gergő
Browse files
Options
Downloads
Patches
Plain Diff
Add news component
parent
10077ee7
Branches
Branches containing commit
No related tags found
2 merge requests
!7
update master to dev
,
!6
Demo
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.eslintrc.js
+5
-0
5 additions, 0 deletions
.eslintrc.js
src/News.tsx
+24
-0
24 additions, 0 deletions
src/News.tsx
src/core/components/Footer.tsx
+1
-1
1 addition, 1 deletion
src/core/components/Footer.tsx
src/core/components/Header.tsx
+1
-1
1 addition, 1 deletion
src/core/components/Header.tsx
with
31 additions
and
2 deletions
.eslintrc.js
+
5
−
0
View file @
0d463e0f
...
...
@@ -11,4 +11,9 @@ module.exports = {
env
:
{
browser
:
true
,
},
rules
:
{
'
react/prop-types
'
:
0
,
'
@typescript-eslint/explicit-function-return-type
'
:
2
,
},
};
This diff is collapsed.
Click to expand it.
src/News.tsx
0 → 100644
+
24
−
0
View file @
0d463e0f
import
{
Grid
,
Typography
}
from
'
@material-ui/core
'
;
import
React
from
'
react
'
;
interface
NewsProps
{
title
:
string
;
content
:
string
;
author
:
string
;
}
const
News
:
React
.
FC
<
NewsProps
>
=
({
title
,
content
,
author
})
=>
(
<
Grid
container
direction
=
"column"
>
<
Grid
item
>
<
Typography
variant
=
"h6"
>
{
title
}
</
Typography
>
</
Grid
>
<
Grid
item
>
<
p
>
{
content
}
</
p
>
</
Grid
>
<
Grid
item
container
justify
=
"flex-end"
>
<
Typography
>
{
author
}
</
Typography
>
</
Grid
>
</
Grid
>
);
export
default
News
;
This diff is collapsed.
Click to expand it.
src/core/components/Footer.tsx
+
1
−
1
View file @
0d463e0f
import
React
from
'
react
'
;
const
Footer
=
()
=>
<
div
>
Footer
</
div
>;
const
Footer
:
React
.
FC
=
()
=>
<
div
>
Footer
</
div
>;
export
default
Footer
;
This diff is collapsed.
Click to expand it.
src/core/components/Header.tsx
+
1
−
1
View file @
0d463e0f
import
React
from
'
react
'
;
const
Header
=
()
=>
<
div
>
Header
</
div
>;
const
Header
:
React
.
FC
=
()
=>
<
div
>
Header
</
div
>;
export
default
Header
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment