Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
90780a00
Commit
90780a00
authored
May 11, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change error code icon and add user email
parent
594430fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
403.svg
icons/error-pages/403.svg
+3
-0
AppErrorUnverifiedEmail.tsx
ui/shared/AppError/AppErrorUnverifiedEmail.tsx
+7
-4
Page.tsx
ui/shared/Page/Page.tsx
+4
-1
No files found.
icons/error-pages/403.svg
0 → 100644
View file @
90780a00
<svg
viewBox=
"0 0 201 101"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M127.992 76.305c0 3.301-.633 6.4-1.9 9.294-1.221 2.895-2.917 5.428-5.088 7.599-2.171 2.17-4.704 3.89-7.598 5.156-2.895 1.22-5.993 1.831-9.295 1.831h-4.138c-3.302 0-6.423-.61-9.362-1.831-2.895-1.267-5.428-2.986-7.599-5.156-2.17-2.171-3.89-4.704-5.156-7.599-1.221-2.895-1.832-5.993-1.832-9.294v-52.24c0-3.3.611-6.399 1.832-9.294 1.267-2.894 2.985-5.427 5.156-7.598 2.171-2.17 4.704-3.867 7.599-5.088 2.94-1.266 6.06-1.9 9.362-1.9h4.138c3.302 0 6.4.633 9.295 1.9 2.894 1.221 5.427 2.917 7.598 5.088 2.171 2.171 3.867 4.704 5.088 7.598 1.267 2.895 1.9 5.993 1.9 9.295v52.239Zm-8.752-52.24c0-2.17-.407-4.183-1.221-6.037-.814-1.9-1.922-3.55-3.324-4.953-1.402-1.402-3.053-2.51-4.953-3.324-1.854-.814-3.867-1.221-6.038-1.221h-3.324c-2.171 0-4.206.407-6.106 1.221a16.718 16.718 0 0 0-4.952 3.324c-1.403 1.402-2.51 3.053-3.325 4.953-.814 1.854-1.22 3.867-1.22 6.038v52.239c0 2.17.406 4.206 1.22 6.105a16.72 16.72 0 0 0 3.325 4.953 16.72 16.72 0 0 0 4.952 3.324c1.9.814 3.935 1.222 6.106 1.222h3.324c2.171 0 4.184-.408 6.038-1.222 1.9-.814 3.551-1.922 4.953-3.324a16.72 16.72 0 0 0 3.324-4.953c.814-1.9 1.221-3.934 1.221-6.105v-52.24ZM47.829 82.005v16.824a8.752 8.752 0 0 1-8.752-8.751v-8.073H3.275a3.275 3.275 0 0 1-2.85-4.89L42.38 3.021a2.914 2.914 0 0 1 5.45 1.436v69.202h8.345a8.345 8.345 0 0 1-8.345 8.344ZM39.077 25.49 12.28 73.659h26.797V25.49ZM198.22 86.25c1.276-2.917 1.914-6.039 1.914-9.365v-6.7c0-2.324-.319-4.534-.957-6.63a22.47 22.47 0 0 0-2.598-5.948 22.916 22.916 0 0 0-3.965-4.922 22.222 22.222 0 0 0-5.195-3.76 25.193 25.193 0 0 0 5.195-3.76 24.48 24.48 0 0 0 3.965-4.99 22.69 22.69 0 0 0 2.598-5.878c.638-2.142.957-4.375.957-6.7v-3.35c0-3.326-.638-6.448-1.914-9.364-1.231-2.917-2.94-5.47-5.127-7.657-2.188-2.187-4.74-3.896-7.657-5.127C182.519.823 179.397.185 176.07.185h-4.17c-3.327 0-6.471.638-9.433 1.914-2.917 1.23-5.469 2.94-7.657 5.127-2.187 2.188-3.919 4.74-5.195 7.657-1.23 2.916-1.846 6.038-1.846 9.365a2.974 2.974 0 0 0 2.497 2.935l2.408.393a3.372 3.372 0 0 0 3.914-3.328c0-2.188.41-4.216 1.23-6.084.82-1.914 1.937-3.578 3.35-4.99a16.835 16.835 0 0 1 4.99-3.35c1.914-.82 3.965-1.23 6.152-1.23h3.35c2.187 0 4.215.41 6.084 1.23 1.914.82 3.577 1.937 4.99 3.35 1.413 1.412 2.529 3.076 3.35 4.99.82 1.868 1.23 3.896 1.23 6.084v4.785c0 2.188-.41 4.238-1.23 6.152a15.982 15.982 0 0 1-3.35 4.922c-1.413 1.413-3.076 2.53-4.99 3.35-1.869.82-3.897 1.23-6.084 1.23h-2.358a4.205 4.205 0 1 0 0 8.409h2.358c2.187 0 4.215.41 6.084 1.23 1.914.82 3.577 1.937 4.99 3.35 1.413 1.412 2.529 3.076 3.35 4.99.82 1.868 1.23 3.896 1.23 6.084v8.135c0 2.187-.41 4.238-1.23 6.152a16.856 16.856 0 0 1-3.35 4.99c-1.413 1.413-3.076 2.53-4.99 3.35-1.869.82-3.897 1.23-6.084 1.23h-3.35c-2.187 0-4.238-.41-6.152-1.23a16.834 16.834 0 0 1-4.99-3.35 16.837 16.837 0 0 1-3.35-4.99c-.82-1.914-1.23-3.965-1.23-6.153a3.34 3.34 0 0 0-3.851-3.299l-2.468.383a2.952 2.952 0 0 0-2.5 2.916c0 3.327.616 6.45 1.846 9.366 1.276 2.916 3.008 5.469 5.195 7.656 2.188 2.188 4.74 3.92 7.657 5.195 2.962 1.231 6.106 1.846 9.433 1.846h4.17c3.327 0 6.449-.615 9.365-1.846 2.917-1.276 5.469-3.007 7.657-5.195 2.187-2.188 3.896-4.74 5.127-7.656Z"
fill=
"currentColor"
/>
</svg>
ui/shared/AppError/AppErrorUnverifiedEmail.tsx
View file @
90780a00
import
{
Box
,
Text
,
Button
,
Heading
,
Icon
,
chakra
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
icon40
4
from
'
icons/error-pages/404
.svg
'
;
import
icon40
3
from
'
icons/error-pages/403
.svg
'
;
import
useApiFetch
from
'
lib/api/useApiFetch
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
import
getErrorObjPayload
from
'
lib/errors/getErrorObjPayload
'
;
...
...
@@ -10,9 +10,10 @@ import useToast from 'lib/hooks/useToast';
interface
Props
{
className
?:
string
;
email
?:
string
;
}
const
AppErrorUnverifiedEmail
=
({
className
}:
Props
)
=>
{
const
AppErrorUnverifiedEmail
=
({
className
,
email
}:
Props
)
=>
{
const
apiFetch
=
useApiFetch
();
const
toast
=
useToast
();
...
...
@@ -61,10 +62,12 @@ const AppErrorUnverifiedEmail = ({ className }: Props) => {
return
(
<
Box
className=
{
className
}
>
<
Icon
as=
{
icon40
4
}
width=
"200px"
height=
"auto"
/>
<
Icon
as=
{
icon40
3
}
width=
"200px"
height=
"auto"
/>
<
Heading
mt=
{
8
}
size=
"2xl"
fontFamily=
"body"
>
Email is not verified
</
Heading
>
<
Text
variant=
"secondary"
mt=
{
3
}
>
Please confirm your email address to use the My Account feature. A confirmation email was sent to test@gmail.com on signup.
{
`Didn't receive?`
}
<
span
>
Please confirm your email address to use the My Account feature. A confirmation email was sent to
</
span
>
<
span
>
{
email
||
'
your email address
'
}
</
span
>
<
span
>
on signup.
{
`Didn't receive?`
}
</
span
>
</
Text
>
<
Button
mt=
{
8
}
...
...
ui/shared/Page/Page.tsx
View file @
90780a00
...
...
@@ -48,7 +48,10 @@ const Page = ({
}
if
(
isUnverifiedEmail
)
{
return
<
PageContent
isHomePage=
{
isHomePage
}
><
AppErrorUnverifiedEmail
mt=
"50px"
/></
PageContent
>;
const
email
=
resourceErrorPayload
&&
'
email
'
in
resourceErrorPayload
&&
typeof
resourceErrorPayload
.
email
===
'
string
'
?
resourceErrorPayload
.
email
:
undefined
;
return
<
PageContent
isHomePage=
{
isHomePage
}
><
AppErrorUnverifiedEmail
mt=
"50px"
email=
{
email
}
/></
PageContent
>;
}
if
(
isBlockConsensus
)
{
...
...
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