-
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 #189 from lizardkingLK/lizardkinglk
Lizardkinglk
- Loading branch information
Showing
68 changed files
with
1,646 additions
and
1,344 deletions.
There are no files selected for viewing
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,7 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"printWidth": 80 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
import { IBadgeProps } from '@/types'; | ||
|
||
const Badge = (props: IBadgeProps) => { | ||
const { text, tooltip } = props; | ||
return ( | ||
<span title={tooltip} className="bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300"> | ||
{text} | ||
</span> | ||
) | ||
} | ||
const { text, tooltip } = props; | ||
return ( | ||
<span | ||
title={tooltip} | ||
className="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300" | ||
> | ||
{text} | ||
</span> | ||
); | ||
}; | ||
|
||
export default Badge | ||
export default Badge; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
import { ISummaryCardLayoutProps } from '@/types' | ||
import { ISummaryCardLayoutProps } from '@/types'; | ||
import { elementType } from '@/utils/enums'; | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const SummaryCardLayout = (props: ISummaryCardLayoutProps) => { | ||
const { type, style, typeData, tooltip, children } = props; | ||
if (type === elementType.button) { | ||
return ( | ||
<button className={style} onClick={typeData.clickEvent} title={tooltip}> | ||
{children} | ||
</button> | ||
); | ||
} else { | ||
return ( | ||
<div className={style}> | ||
{children} | ||
</div> | ||
) | ||
} | ||
} | ||
const { type, style, typeData, tooltip, children } = props; | ||
if (type === elementType.button) { | ||
return ( | ||
<button className={style} onClick={typeData.clickEvent} title={tooltip}> | ||
{children} | ||
</button> | ||
); | ||
} else { | ||
return <div className={style}>{children}</div>; | ||
} | ||
}; | ||
|
||
export default SummaryCardLayout | ||
export default SummaryCardLayout; |
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
Oops, something went wrong.