Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mutirao do Bem
Mutirao do Bem Web
Commits
2522ec5a
Commit
2522ec5a
authored
3 years ago
by
Pinalli
Browse files
Options
Download
Email Patches
Plain Diff
create component w/ william
parent
d86d0bf6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/components/ProgressBar/index.tsx
+1
-7
src/components/ProgressBar/index.tsx
src/components/SeeTasks/index..tsx
+25
-0
src/components/SeeTasks/index..tsx
src/pages/EventDetails/index.tsx
+6
-6
src/pages/EventDetails/index.tsx
src/utils/library.ts
+3
-1
src/utils/library.ts
with
35 additions
and
14 deletions
+35
-14
src/components/ProgressBar/index.tsx
View file @
2522ec5a
...
...
@@ -4,13 +4,7 @@ import React from "react";
const
ProgressBar
=
():
React
.
ReactElement
=>
{
return
(
<>
<
Progress
h
=
"25px"
w
=
"120px"
value
=
{
20
}
transform
=
"rotate(270deg)"
borderRadius
=
"6px"
/>
<
Progress
h
=
"25px"
w
=
"120px"
value
=
{
20
}
borderRadius
=
"6px"
/>
<
Text
>
33,3%
</
Text
>
</>
);
...
...
This diff is collapsed.
Click to expand it.
src/components/SeeTasks/index..tsx
0 → 100644
View file @
2522ec5a
import
{
Box
}
from
"
@chakra-ui/react
"
;
import
{
FontAwesomeIcon
}
from
"
@fortawesome/react-fontawesome
"
;
import
React
from
"
react
"
;
import
Button
from
"
../Button
"
;
import
ProgressBar
from
"
../ProgressBar
"
;
const
SeeTasks
=
():
React
.
ReactElement
=>
{
return
(
<
Box
>
<
FontAwesomeIcon
icon
=
"tasks"
color
=
"#f9c201"
size
=
"3x"
/>
<
ProgressBar
/>
<
Button
theme
=
"secondary"
w
=
"60%"
_hover
=
{
{
background
:
"
yellow.400
"
}
}
_active
=
{
{
background
:
"
yellow.400
"
}
}
>
VER TAREFAS
</
Button
>
</
Box
>
);
};
export
default
SeeTasks
;
This diff is collapsed.
Click to expand it.
src/pages/EventDetails/index.tsx
View file @
2522ec5a
...
...
@@ -17,6 +17,7 @@ import Carousel from "../../components/Carousel";
import
EventInfo
from
"
../../components/EventInfo
"
;
import
{
Header
}
from
"
../../components/NewHeader
"
;
import
ProgressBar
from
"
../../components/ProgressBar
"
;
import
SeeTasks
from
"
../../components/SeeTasks/index.
"
;
import
StaticMap
from
"
../../components/StaticMap
"
;
import
{
EventDetailsResponseDTO
}
from
"
../../model/eventModel
"
;
import
{
...
...
@@ -126,11 +127,8 @@ const EventDetails = (): React.ReactElement => {
mt
=
"10px"
borderRadius
=
"10px"
/>
<
Text
ml
=
"10px"
fontSize
=
"14px"
>
Como posso ajudar?
</
Text
>
<
HStack
>
{
/*
<HStack>
<Flex
w="50%"
maxH={{ sm: "115px" }}
...
...
@@ -147,9 +145,11 @@ const EventDetails = (): React.ReactElement => {
justifyContent="center"
alignItems="center"
>
<
ProgressBar
/>
</Flex>
</
HStack
>
</HStack> */
}
<
SeeTasks
/>
<
Flex
flexDir
=
"column"
...
...
This diff is collapsed.
Click to expand it.
src/utils/library.ts
View file @
2522ec5a
...
...
@@ -14,6 +14,7 @@ import {
faCalendarAlt
,
faClock
,
faMapMarkerAlt
,
faTasks
,
}
from
"
@fortawesome/free-solid-svg-icons
"
;
library
.
add
(
...
...
@@ -30,5 +31,6 @@ library.add(
faArrowLeft
,
faCalendarAlt
,
faClock
,
faMapMarkerAlt
faMapMarkerAlt
,
faTasks
);
This diff is collapsed.
Click to expand it.
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