Skip to content

Commit d958f70

Browse files
github + buymeacoffee
1 parent 8ddb5c7 commit d958f70

File tree

6 files changed

+26
-6
lines changed

6 files changed

+26
-6
lines changed

public/img/icon/apps/buyme.png

4.49 KB
Loading

public/img/icon/apps/github.png

1.38 KB
Loading

src/containers/home/index.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ function Home() {
6767
{favbar.map((favicon, i)=>{
6868
var app = apps[favicon]
6969
return (
70-
<Icon className="mdShad" src={"apps/" + app.icon} action={app.action || "home/openApp"}
71-
data-padd={app.padd} w={52} radii={20} key={i} payload={app.payload}/>
70+
<Icon className="mdShad press-in" src={"apps/" + app.icon} key={i}
71+
action={app.action || "home/openApp"} w={52} h={52}
72+
radii={20} data-padd={app.padd} payload={app.payload}/>
7273
)
7374
})}
7475
</div>
@@ -263,8 +264,9 @@ const HomeScreen = (props)=>{
263264
gridColumn: item.col.join(" / ")
264265
}}>
265266
<div className="app-container">
266-
<Icon src={"apps/" + app.icon} action={app.action || "home/openApp"}
267-
w={52} radii={22} data-padd={app.padd} payload={app.payload}/>
267+
<Icon className="press-in" src={"apps/" + app.icon}
268+
action={app.action || "home/openApp"} w={52} h={52}
269+
radii={22} data-padd={app.padd} payload={app.payload}/>
268270
<div className="app-name">{app.name}</div>
269271
</div>
270272
</div>

src/store/actions/data/apps.js

+15
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ var apps = [
55
type: 'app',
66
padd: true
77
},
8+
{
9+
name: 'BuyMeACoffee',
10+
icon: 'buyme',
11+
action: 'home/openLink',
12+
payload: 'https://buymeacoffee.com/blueedgetechno',
13+
type: 'app'
14+
},
815
{
916
name: 'Calender',
1017
icon: 'calender',
@@ -62,6 +69,14 @@ var apps = [
6269
type: 'app',
6370
padd: true
6471
},
72+
{
73+
name: 'Github',
74+
icon: 'github',
75+
type: 'app',
76+
action: 'home/openLink',
77+
payload: 'https://github.com/blueedgetechno/androidInReact',
78+
padd: true
79+
},
6580
{
6681
name: 'Gmail',
6782
icon: 'gmail',

src/store/actions/data/preset.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import apps from './apps';
22

33
export const favbar = [
4-
"ssphone", "messages","settings","whatsapp"
4+
"ssphone", "github","settings","whatsapp"
55
]
66

77
export const page1wid = [
@@ -25,7 +25,7 @@ export const page4wid = [
2525
]
2626

2727
const page1arr = [
28-
"playstore", "youtube", "google", "ssbrowser"
28+
"playstore", "youtube", "google", "buyme"
2929
]
3030

3131
export const page1apps = apps.filter(x => page1arr.includes(x.icon)).sort((a, b) => {

src/store/reducers/home.js

+3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ const Home = createSlice({
8989
state.recent = false
9090
state.ishome = true
9191
},
92+
openLink: (state, action) => {
93+
window.open(action.payload, '_blank')
94+
},
9295
openApp: (state, action) => {
9396
if(!action.payload) return;
9497

0 commit comments

Comments
 (0)