-
Notifications
You must be signed in to change notification settings - Fork 8
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 #214 from aesirxio/develop
Push changes to master
- Loading branch information
Showing
81 changed files
with
8,347 additions
and
2,710 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,31 @@ | ||
import React from 'react'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faCopy } from '@fortawesome/free-solid-svg-icons/faCopy'; | ||
import { useState } from 'react'; | ||
|
||
function ButtonCopy({ content, className, text, isReplaceClass }: any) { | ||
const [copy, setCopy] = useState(false); | ||
const handleCopy = (content: any) => { | ||
setCopy(true); | ||
setTimeout(() => { | ||
setCopy(false); | ||
}, 1500); | ||
navigator.clipboard.writeText(content); | ||
}; | ||
const customClass = isReplaceClass | ||
? className | ||
: `rounded-1 fs-8 lh-base font-opensans fw-bold text-body cursor-copy ${className}`; | ||
return ( | ||
<button onClick={() => handleCopy(content)} disabled={copy} className={customClass}> | ||
{!copy ? ( | ||
<> | ||
{text} <FontAwesomeIcon icon={faCopy} width={16} height={16} /> | ||
</> | ||
) : ( | ||
'COPIED!' | ||
)} | ||
</button> | ||
); | ||
} | ||
|
||
export default ButtonCopy; |
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,5 @@ | ||
import React from 'react'; | ||
const CreateMarkup = ({ htmlString, className }: any) => { | ||
return <span className={className ?? ''} dangerouslySetInnerHTML={{ __html: htmlString }}></span>; | ||
}; | ||
export default CreateMarkup; |
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
} | ||
} | ||
.react-datepicker__input-container { | ||
height: 54px; | ||
height: 48px; | ||
} | ||
|
||
.icon { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
interface ImageIcon { | ||
width?: number; | ||
height?: number; | ||
src: string; | ||
className?: string; | ||
} | ||
|
||
const ImageIcon = ({ width, height, src, className }: ImageIcon) => { | ||
return ( | ||
<span | ||
className={`icon-image d-inline-block align-text-bottom ${className}`} | ||
style={{ | ||
width: `${width ?? 24}px`, | ||
height: `${height ?? 24}px`, | ||
WebkitMaskImage: `url(${src})`, | ||
WebkitMaskRepeat: 'no-repeat', | ||
WebkitMaskSize: 'contain', | ||
}} | ||
></span> | ||
); | ||
}; | ||
|
||
export default ImageIcon; |
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.