Skip to content

Commit

Permalink
chore: apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
timeowilliams committed Oct 16, 2024
1 parent f68943d commit d7305b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/renderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
<title>deepFocus</title>
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta
http-equiv="Content-Security-Policy"
content="
http-equiv="Content-Security-Policy"
content="
default-src 'self';
script-src 'self';
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://fonts.gstatic.com;
connect-src 'self' https://backend-production-5eec.up.railway.app http://localhost:5000;
img-src 'self' data: https://www.google.com https://*.google.com https://*.gstatic.com;
"
/>
/>
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap"
rel="stylesheet"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Button } from './components/ui/button'
import DeepWorkSlider from './DeepWorkSlider'
import UnproductiveWebsites from './UnproductiveWebsites'
import UnproductiveApps from './UnproductiveApps'
import Modal from './components/modal'
import Modal from './components/modal'

const Settings = () => {
const [showEditWebsites, setShowEditWebsites] = createSignal(false)
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/UnproductiveWebsites.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const UnproductiveWebsites = (props: {}) => {
const addSite = () => {
if (site().trim()) {
const newSite = site().trim()
if(newSite.startsWith('http://') || newSite.startsWith('https://')) {
if (newSite.startsWith('http://') || newSite.startsWith('https://')) {
const updatedSites = [...unproductiveSites(), newSite]
setUnproductiveSites(updatedSites)
setSite('')
Expand Down
6 changes: 1 addition & 5 deletions src/renderer/src/components/modal.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@

const Modal = (props) => {
return (
<div class="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50">
<div class="bg-black p-6 rounded-lg shadow-lg w-96">
<div class="flex justify-between items-center">
<h2 class="text-xl font-semibold">{props.title}</h2>
<button
class="text-gray-500 hover:text-gray-800"
onClick={props.onClose}
>
<button class="text-gray-500 hover:text-gray-800" onClick={props.onClose}>
</button>
</div>
Expand Down

0 comments on commit d7305b2

Please sign in to comment.