mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(localStorage): solution to localStorage issue
Still need to find a good way to re-render
This commit is contained in:
1 parent
07dc73f0cb
commit
5fdb9ba21c
7 files changed
+51
-53
No files matched your search
+4
-6
@@ -25,7 +25,7 @@ import { useNotesService } from './apps/notes/hooks/useNotesService';
|
||||
import { usePhotoService } from './apps/camera/hooks/usePhotoService';
|
||||
import Nui from './os/nui-events/utils/Nui';
|
||||
import { usePhone } from './os/phone/hooks/usePhone';
|
||||
import { getStorageItem } from './os/phone/hooks/getLocalStorage';
|
||||
import { getStorage } from './os/phone/hooks/useLocalStorage';
|
||||
|
||||
// Inject mock data when in development env.
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
@@ -273,21 +273,19 @@ function Phone() {
|
||||
return (
|
||||
<ThemeProvider theme={currentTheme()}>
|
||||
<div className='PhoneWrapper'>
|
||||
<div style={{ zoom: getStorageItem('zoom') }}>
|
||||
<div style={{ zoom: getStorage('zoom') }}>
|
||||
<div className='Phone'>
|
||||
<div
|
||||
className='PhoneFrame'
|
||||
style={{
|
||||
backgroundImage: `url(./media/frames/${getStorageItem(
|
||||
'frame'
|
||||
)})`,
|
||||
backgroundImage: `url(./media/frames/${getStorage('frame')})`,
|
||||
}}
|
||||
></div>
|
||||
<div
|
||||
id='phone'
|
||||
className='PhoneScreen'
|
||||
style={{
|
||||
backgroundImage: `url(./media/backgrounds/${getStorageItem(
|
||||
backgroundImage: `url(./media/backgrounds/${getStorage(
|
||||
'wallpaper'
|
||||
)})`,
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user