-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom URL generator #46
base: main
Are you sure you want to change the base?
Conversation
@riyajain59 is attempting to deploy a commit to a Personal Account on Vercel that is not owned by them. In order for the commit to be deployed, @riyajain59 must be granted access to the connected Vercel project. If you're the owner of the Personal Account, transfer the project to a Vercel Team and start collaborating, or learn more. |
This pull request is being automatically deployed with Vercel (learn more). climate-clock – ./🔍 Inspect: https://vercel.com/hack4impact/climate-clock/HYrttUudBPTup4PvkPG1AfiXnWSq |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yayyy this looks awesome Riya!! Just a couple small things and you're golden.
client/src/App.tsx
Outdated
@@ -1,6 +1,7 @@ | |||
import { useState } from 'react' | |||
import { WindowSize } from '@reach/window-size' | |||
import { ThemeProvider } from 'styled-components' | |||
// import { get } from './api/config' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment necessary?
client/src/App.tsx
Outdated
return ( | ||
<ThemeProvider theme={theme}> | ||
<FullScreen | ||
handle={handle} | ||
onChange={() => setFullscreenButton(!showFullscreenButton)} | ||
> | ||
{' '} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also the space, i just may not be familiar with the syntax though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets added by the linter sometimes but it should be removed
client/src/pages/Home.tsx
Outdated
@@ -15,7 +17,8 @@ export default function Home() { | |||
) | |||
const [newsfeedModules, setNewsfeedModules] = useState<NewsInterface[]>([]) | |||
const [errorFlag, setErrorFlag] = useState<boolean>(false) | |||
|
|||
const navigate = useNavigate() | |||
//localStorage.getItem(LANGUAGE_LOCAL_STORAGE_KEY),localStorage.getItem(LIFELINES_LOCAL_STORAGE_KEY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this comment necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good but, it looks like your changes break the website currently (check the vercel deployment to see what I'm referring to). It seem like not adding the url at the end will null is breaking the code.
client/src/App.tsx
Outdated
return ( | ||
<ThemeProvider theme={theme}> | ||
<FullScreen | ||
handle={handle} | ||
onChange={() => setFullscreenButton(!showFullscreenButton)} | ||
> | ||
{' '} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets added by the linter sometimes but it should be removed
@@ -52,6 +60,18 @@ const LifelineCreationForm = () => { | |||
*/ | |||
const formSubmit = (e: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend against using the any type since it is both bad practice and the linter will complain about this in the future
Bugs:
|
❌ Deploy Preview for stunning-cocada-f3d6ad failed.
|
Status:
🚀 Ready
Description
Generate a custom URL that saves settings of the clock. The settings include the language, whether the ticker shows up, and the different lifelines.
Fixes #17
Todos
Deadline (from the issue)
Screenshots