-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
117 additions
and
12 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
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
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,55 @@ | ||
/* Copyright (c) 2021-2022 SnailDOS */ | ||
|
||
import * as React from 'react'; | ||
|
||
import { Header, Row, Title, Control } from '../App/style'; | ||
import store from '../../store'; | ||
import { BLUE_500, RED_500 } from '~/renderer/constants'; | ||
import { observer } from 'mobx-react-lite'; | ||
import { newTabSwitchChange } from '../../utils'; | ||
import { Switch } from '~/renderer/components/Switch'; | ||
|
||
|
||
const WeatherToggle = observer(() => { | ||
const { weather } = store.settings.newtab; | ||
|
||
return ( | ||
<Row onClick={newTabSwitchChange('weather')}> | ||
<Title> | ||
Allow the weather network request on the newtab screen (wttr.in) | ||
</Title> | ||
<Control> | ||
<Switch value={weather} /> | ||
</Control> | ||
</Row> | ||
); | ||
}); | ||
|
||
const NewsToggle = observer(() => { | ||
const { news } = store.settings.newtab; | ||
|
||
return ( | ||
<Row onClick={newTabSwitchChange('news')}> | ||
<Title> | ||
Allow the news network request on the newtab screen | ||
</Title> | ||
<Control> | ||
<Switch value={news} /> | ||
</Control> | ||
</Row> | ||
); | ||
}); | ||
|
||
|
||
export const Party = () => { | ||
return ( | ||
<> | ||
<Header>Third Party Services</Header> | ||
<span>Fifo offers an easy way to block and allow third party services that are optional to the user that may use their private infomation for unique features.</span> | ||
<Row> | ||
</Row> | ||
<NewsToggle /> | ||
<WeatherToggle /> | ||
</> | ||
); | ||
}; |
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