|
|
|
@@ -1,5 +1,6 @@ |
|
|
|
// material-ui |
|
|
|
import {useState, useEffect} from 'react'; |
|
|
|
import { useIntl } from 'react-intl'; |
|
|
|
import iAmSmartICon from 'assets/images/icons/icon_iAmSmart.png'; |
|
|
|
import { |
|
|
|
Button, |
|
|
|
@@ -9,7 +10,7 @@ import { |
|
|
|
// ==============================|| EVENT TABLE ||============================== // |
|
|
|
|
|
|
|
export function IAmSmartButton({ label, onClickFun, fullWidth }) { |
|
|
|
|
|
|
|
const intl = useIntl(); |
|
|
|
const [_label, set_label] = useState(""); |
|
|
|
|
|
|
|
useEffect(()=>{ |
|
|
|
@@ -23,7 +24,7 @@ export function IAmSmartButton({ label, onClickFun, fullWidth }) { |
|
|
|
} |
|
|
|
|
|
|
|
return ( |
|
|
|
<Button onClick={()=>doOnClick()} sx={{textTransform: 'none'}} color="iAmSmart" fullWidth={fullWidth} size="large" variant="outlined" startIcon={<img src={iAmSmartICon} alt="iAM Smart" width="30" />}> |
|
|
|
<Button onClick={()=>doOnClick()} sx={{textTransform: 'none'}} color="iAmSmart" fullWidth={fullWidth} size="large" variant="outlined" startIcon={<img src={iAmSmartICon} alt={intl.formatMessage({ id: 'iAmSmartAlt' })} width="30" />}> |
|
|
|
<Typography variant="h5"> |
|
|
|
{_label} |
|
|
|
</Typography> |
|
|
|
|