-
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 #187 from lizardkingLK/lizardkinglk
merge latest with unread in dashboard function.
- Loading branch information
Showing
11 changed files
with
164 additions
and
95 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,13 @@ | ||
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> | ||
) | ||
} | ||
|
||
export default Badge |
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 { ISummaryCardLayoutProps } from '@/types' | ||
import { elementType } from '@/utils/enums'; | ||
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> | ||
) | ||
} | ||
} | ||
|
||
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.