-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from samuliasmala/antti/json-server
Mergetään antti/json-server -> main-branchiin.
- Loading branch information
Showing
12 changed files
with
242 additions
and
102 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Modal } from './Modal'; | ||
import { TitleText } from './TitleText'; | ||
|
||
type InfoModalType = { | ||
title: string; | ||
info: string; | ||
}; | ||
|
||
export function InfoModal({ title, info }: InfoModalType) { | ||
return ( | ||
<div> | ||
<Modal> | ||
<TitleText className="row-start-1 row-end-1 ps-5 font-bold"> | ||
{title} | ||
</TitleText> | ||
<p className="row-start-2 row-end-2 ps-5 pt-5 text-lg w-full h-full font-bold"> | ||
{info} | ||
</p> | ||
</Modal> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
import type { SVGProps } from 'react'; | ||
|
||
type AcceptButtonType = SVGProps<SVGSVGElement> & { | ||
backgroundFill?: string; | ||
checkmarkFill?: string; | ||
type CheckMarkIcon = SVGProps<SVGSVGElement> & { | ||
backgroundClassName?: string; | ||
checkMarkClassName?: string; | ||
}; | ||
|
||
const SvgAcceptButtonIcon = ({ | ||
backgroundFill, | ||
checkmarkFill, | ||
export const SvgCheckMarkIcon = ({ | ||
backgroundClassName, | ||
checkMarkClassName, | ||
...rest | ||
}: AcceptButtonType) => ( | ||
}: CheckMarkIcon) => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" {...rest}> | ||
<path | ||
fill={backgroundFill || 'currentColor'} | ||
className={backgroundClassName} | ||
d="M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm-2 19.59-5-5L10.59 15 14 18.41 21.41 11l1.596 1.586Z" | ||
/> | ||
<path | ||
fill={checkmarkFill || 'none'} | ||
className={checkMarkClassName} | ||
d="m14 21.591-5-5L10.591 15 14 18.409 21.41 11l1.595 1.585L14 21.591z" | ||
/> | ||
</svg> | ||
); | ||
export default SvgAcceptButtonIcon; |
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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import type { SVGProps } from 'react'; | ||
|
||
type DeclineButtonType = SVGProps<SVGSVGElement> & { | ||
backgroundFill?: string; | ||
type DeclineIcon = SVGProps<SVGSVGElement> & { | ||
backgroundClassName?: string; | ||
}; | ||
|
||
const SvgDeclineButtonIcon = ({ | ||
backgroundFill, | ||
export const SvgDeclineIcon = ({ | ||
backgroundClassName, | ||
...rest | ||
}: DeclineButtonType) => ( | ||
}: DeclineIcon) => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...rest}> | ||
<path | ||
fill={backgroundFill || 'currentColor'} | ||
className={backgroundClassName} | ||
d="m8.4 17 3.6-3.6 3.6 3.6 1.4-1.4-3.6-3.6L17 8.4 15.6 7 12 10.6 8.4 7 7 8.4l3.6 3.6L7 15.6 8.4 17Zm3.6 5q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Z" | ||
/> | ||
</svg> | ||
); | ||
export default SvgDeclineButtonIcon; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.