-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[000] implementing saving bommels. fix tests
- Loading branch information
1 parent
3cab15a
commit 34e0516
Showing
14 changed files
with
264 additions
and
54 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
frontend/spa/src/components/ OrganizationRegistrationSuccess/CheckmarkIcon.tsx
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,65 @@ | ||
import React from 'react'; | ||
|
||
const CheckmarkIcon: React.FC = ({ className }: { className?: string }) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
xmlnsXlink="http://www.w3.org/1999/xlink" | ||
version="1.1" | ||
width="256" | ||
height="256" | ||
viewBox="0 0 256 256" | ||
xmlSpace="preserve" | ||
className={className} | ||
> | ||
<defs /> | ||
<g | ||
style={{ | ||
stroke: 'none', | ||
strokeWidth: 0, | ||
strokeDasharray: 'none', | ||
strokeLinecap: 'butt', | ||
strokeLinejoin: 'miter', | ||
strokeMiterlimit: 10, | ||
fill: 'none', | ||
fillRule: 'nonzero', | ||
opacity: 1, | ||
}} | ||
transform="translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)" | ||
> | ||
<path | ||
d="M 43.121 62.779 c -0.046 0 -0.093 -0.001 -0.14 -0.002 c -1.375 -0.039 -2.672 -0.642 -3.588 -1.666 L 26.376 46.546 c -1.84 -2.059 -1.663 -5.22 0.396 -7.06 c 2.059 -1.842 5.22 -1.663 7.06 0.396 l 9.492 10.621 l 31.347 -31.346 c 1.951 -1.952 5.119 -1.952 7.07 0 c 1.953 1.953 1.953 5.119 0 7.071 L 46.656 61.314 C 45.717 62.254 44.445 62.779 43.121 62.779 z" | ||
style={{ | ||
stroke: 'none', | ||
strokeWidth: 1, | ||
strokeDasharray: 'none', | ||
strokeLinecap: 'butt', | ||
strokeLinejoin: 'miter', | ||
strokeMiterlimit: 10, | ||
fillRule: 'nonzero', | ||
opacity: 1, | ||
}} | ||
transform="matrix(1 0 0 1 0 0)" | ||
strokeLinecap="round" | ||
className="fill-primary" | ||
/> | ||
<path | ||
d="M 45 90 C 20.187 90 0 69.813 0 45 C 0 20.187 20.187 0 45 0 c 8.231 0 16.286 2.244 23.292 6.491 c 2.362 1.431 3.116 4.505 1.686 6.867 c -1.432 2.362 -4.506 3.117 -6.868 1.685 C 57.666 11.744 51.403 10 45 10 c -19.299 0 -35 15.701 -35 35 s 15.701 35 35 35 s 35 -15.701 35 -35 c 0 -1.487 -0.095 -2.987 -0.28 -4.458 c -0.348 -2.74 1.592 -5.242 4.332 -5.589 c 2.74 -0.349 5.241 1.593 5.588 4.332 C 89.879 41.172 90 43.094 90 45 C 90 69.813 69.813 90 45 90 z" | ||
style={{ | ||
stroke: 'none', | ||
strokeWidth: 1, | ||
strokeDasharray: 'none', | ||
strokeLinecap: 'butt', | ||
strokeLinejoin: 'miter', | ||
strokeMiterlimit: 10, | ||
fillRule: 'nonzero', | ||
opacity: 1, | ||
}} | ||
transform="matrix(1 0 0 1 0 0)" | ||
strokeLinecap="round" | ||
className="fill-primary" | ||
/> | ||
</g> | ||
</svg> | ||
); | ||
|
||
export default CheckmarkIcon; |
26 changes: 26 additions & 0 deletions
26
...d/spa/src/components/ OrganizationRegistrationSuccess/OrganizationRegistrationSuccess.tsx
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,26 @@ | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
import authService from '@/services/auth/AuthService.ts'; | ||
import Button from '@/components/ui/Button.tsx'; | ||
import CheckmarkIcon from '@/components/ OrganizationRegistrationSuccess/CheckmarkIcon.tsx'; | ||
|
||
export function OrganizationRegistrationSuccess() { | ||
const { t } = useTranslation(); | ||
|
||
const onClickLogin = () => { | ||
authService.login(); | ||
}; | ||
|
||
return ( | ||
<div> | ||
<div className="flex justify-center"> | ||
<CheckmarkIcon /> | ||
</div> | ||
|
||
<h1 className="mt-4 mb-6 text-center">Your organization has been successfully registered.</h1> | ||
<div className="text-center"> | ||
<Button onClick={onClickLogin}>{t('header.login')}</Button> | ||
</div> | ||
</div> | ||
); | ||
} |
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
10 changes: 9 additions & 1 deletion
10
frontend/spa/src/components/views/RegisterOrganizationView.tsx
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
Oops, something went wrong.