@material-ui/icons APIs
- ExpandMore
- Delete
- Close
- Visibility
- VisibilityOff
- Check
- Add
- Edit
- Search
- ExpandLess
- Settings
- Person
- Info
- Clear
- ExitToApp
- ArrowDropDown
- Home
- GitHub
- Warning
- ArrowBack
- SearchOutlined
- Done
- LocationOn
- PlayArrow
- Apps
- Brightness4
- Brightness7
- Description
- KeyboardArrowDown
- KeyboardArrowLeft
- KeyboardArrowRight
- MoreVert
- LocationCity
- Map
- Image
- AccountCircle
- InfoOutlined
- Create
- Block
- Replay
- AddCircle
- HomeRounded
- GetApp
- ChevronLeft
- ChevronRight
- CloudDownload
- CheckCircleOutline
- Send
- LockOpen
- Cancel
- NavigateNext
- AccountBox
- DragIndicator
- FavoriteBorderOutlined
- AccessTime
- DoneAll
- CheckCircle
- CropFree
- LockOutlined
- Undo
- Dashboard
- People
- PhotoLibrary
- HomeOutlined
- Group
- ArrowDropUp
- Remove
- ArrowUpward
- Save
- ArrowForward
- AttachFile
- Headset
- SignalCellularAlt
- ArrowForwardIos
- PlayCircleFilled
- AccessAlarm
- Adjust
- BarChart
- CloseRounded
- PlayArrowOutlined
- ImageRounded
- MenuBookRounded
- RefreshRounded
- HourglassEmptyOutlined
- Announcement
- Ballot
- QuestionAnswerOutlined
- CloudUpload
- SkipNext
- ArrowRightAlt
- MoreHoriz
- FileCopy
- MenuBook
- Language
- AlternateEmail
- FolderOpen
- Lock
- Pets
- AddCircleRounded
- ExploreRounded
- WbSunnyRounded
- Brightness2Rounded
- DonutLargeRounded
- AssistantRounded
- AccountCircleRounded
- ExitToAppRounded
- VpnKey
- MailOutline
- Smartphone
- DeleteForever
- LanguageOutlined
- Colorize
- SignalCellularConnectedNoInternet2Bar
- SignalCellularConnectedNoInternet0Bar
- SignalCellular4Bar
- DeleteOutline
- NewReleases
- LocalOffer
- Assessment
- Place
- TrendingDown
- ShoppingCart
- Stop
- RotateLeft
- Menu
- Flag
- Forum
- GroupSharp
- InsertEmoticon
- NotificationsActive
- PhoneIphone
- AllInbox
- Comment
- Photo
- PlaylistAddCheck
- CloudUploadRounded
- ExpandMoreOutlined
- History
- PersonOutlineOutlined
- ArrowForwardIosRounded
- ArrowBackIosRounded
- AssignmentOutlined
- VerticalAlignCenterOutlined
- CalendarTodayOutlined
- Error
- PlaylistPlay
- MusicNoteTwoTone
- Portrait
- ExploreOutlined
- DeleteRounded
- EditRounded
- SaveRounded
- CreateNewFolder
- MeetingRoom
- MenuOpenRounded
- MenuRounded
- DateRange
- CallEnd
- Assignment
- KeyboardBackspace
- BluetoothSearching
- CameraAlt
- PlaylistAdd
- Favorite
- Bluetooth
- OpenInBrowser
- Loop
- FileCopyOutlined
- NavigateBefore
- MergeType
- Dvr
- PersonOutline
- PlayCircleFilledWhiteOutlined
- StoreMallDirectoryOutlined
- SupervisedUserCircleOutlined
- MonetizationOn
- OpenInNew
- ArrowDownward
- AddBox
- FilterList
- FirstPage
- LastPage
- ViewColumn
- Notifications
- DriveEta
- LocalTaxi
- Redo
- AccountTree
- TextFields
- SaveAlt
- ThumbDown
- ThumbUp
- LocalPhone
- VolumeUp
- VolumeDown
- Translate
- AddCircleOutlined
- RemoveCircleOutlined
- Router
- RemoveRedEye
- Chat
- Mood
- Mic
OtherRelated APIs
@material-ui/icons#CameraAlt JavaScript Examples
The following examples show how to use
@material-ui/icons#CameraAlt.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MyActivitiesLoggedin.js From pwa with MIT License | 4 votes |
function MyActivitiesLoggedin(props) {
let history = useHistory();
const date =
props.eventResult !== null
? new Intl.DateTimeFormat('fa', {
month: 'short',
day: '2-digit',
year: 'numeric',
hour: 'numeric',
minute: 'numeric',
}).format(new Date(props.createTime))
: null;
const firstDate =
props.firstCreateTime !== null
? new Intl.DateTimeFormat('fa', {
month: 'short',
day: '2-digit',
year: 'numeric',
hour: 'numeric',
minute: 'numeric',
}).format(new Date(props.firstCreateTime))
: null;
const mySelf =
props.eventResult !== null
? props.eventResult.people.filter((person) => {
return person.phone_number === props.eventResult.phone_number;
})
: null;
let healthMessageColor = 'rgba(0,0,0,0.75)';
if (mySelf !== null) {
if (mySelf[0].health_state == 1) {
healthMessageColor = '#00ffba';
} else if (mySelf[0].health_state == 2) {
healthMessageColor = '#f1e100';
} else if (mySelf[0].health_state == 3) {
healthMessageColor = '#ff005c';
}
}
return (
<>
<MyActivitiesHelp />
<AppBar position="static" className="activity-header">
<Toolbar>
<img src={logo} className="app-header-logo" />
<div>
<IconButton
color="inherit"
onClick={() => {
props.hideNavigation();
history.push('/qr-scanner');
}}
>
<CameraAlt />
</IconButton>
<IconButton
color="inherit"
onClick={() => {
props.hideNavigation();
history.push('/my-qrcode');
}}
>
<CropFree />
</IconButton>
<IconButton
color="inherit"
onClick={() => {
props.hideNavigation();
history.push('/bluetooth');
}}
>
<Bluetooth />
</IconButton>
</div>
</Toolbar>
</AppBar>
<div
className={`contentWrapper MyActivitiesWrapper`}
style={
props.eventResult === null
? { justifyContent: 'center' }
: { justifyContent: 'flex-start' }
}
>
{props.eventResult === null && (
<>
<PlaylistAdd
style={{ fontSize: 80, marginBottom: 22, marginTop: -50 }}
color="primary"
/>
<span className="message">
{PersianLan.myActivitiesTab.noActivityYet}
</span>
<span className="message">
{PersianLan.myActivitiesTab.touchButtonToSetActivity}
</span>
</>
)}
{props.eventResult !== null && (
<div>
<div className="lastUpdateContainer">
<span>زمان بروزرسانی وضعیت شما:</span>
<span>{date}</span>
</div>
<div className="healthMessageContainer">
{mySelf[0].health_state === 1 && (
<Favorite style={{ fontSize: 70, color: healthMessageColor }} />
)}
{mySelf[0].health_state === 2 && (
<Warning style={{ fontSize: 70, color: healthMessageColor }} />
)}
{mySelf[0].health_state === 3 && (
<Warning style={{ fontSize: 70, color: healthMessageColor }} />
)}
<div className="healthMessage">
<p style={{ color: healthMessageColor, fontSize: 14 }}>
{props.eventResult.people[0].health_message}
</p>
</div>
</div>
<div className="healthCount">
<span>{props.eventCounter} بار ثبت اطلاعات در سلامت روزانه</span>
{props.eventCounter > 1 && (
<span className="healthPerod">
از {firstDate} تا {date}
</span>
)}
</div>
</div>
)}
<Button
onClick={() => {
props.hideNavigation();
history.push('/add-myactivities');
}}
disableElevation
className={`btn addActivityBtn`}
color="primary"
variant="contained"
>
{PersianLan.myActivitiesTab.addNewActivity}
</Button>
</div>
</>
);
}