Skip to content

Commit 9d34c19

Browse files
fixed helper links
1 parent d4285ee commit 9d34c19

1 file changed

Lines changed: 54 additions & 2 deletions

File tree

src/pages/Tracker/Tracker.tsx

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import {
3232
import { useTheme } from "@mui/material/styles";
3333
import { useGitHubAuth } from "../../hooks/useGitHubAuth";
3434
import { useGitHubData } from "../../hooks/useGitHubData";
35+
import { KeyIcon } from "lucide-react";
3536

3637
const ROWS_PER_PAGE = 10;
3738

@@ -182,9 +183,60 @@ const Home: React.FC = () => {
182183
type="password"
183184
required
184185
sx={{ flex: 1, minWidth: 150 }}
186+
helperText={
187+
<Box
188+
component="span"
189+
sx={{
190+
display: "flex",
191+
alignItems: "center",
192+
gap: 1,
193+
fontSize: "0.75rem",
194+
}}
195+
>
196+
<Link
197+
href="https://github.com/settings/tokens/new"
198+
target="_blank"
199+
rel="noopener noreferrer"
200+
sx={{
201+
fontSize: "0.75rem",
202+
textDecoration: "none",
203+
display: "inline-flex",
204+
alignItems: "center",
205+
gap: 0.5,
206+
}}
207+
>
208+
<KeyIcon size={12} />
209+
Generate new token
210+
</Link>
211+
212+
<Box component="span" sx={{ opacity: 0.6 }}>
213+
214+
</Box>
215+
216+
<Link
217+
href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens"
218+
target="_blank"
219+
rel="noopener noreferrer"
220+
sx={{
221+
fontSize: "0.75rem",
222+
textDecoration: "none",
223+
}}
224+
>
225+
Learn more
226+
</Link>
227+
</Box>
228+
}
185229
/>
186-
<Button type="submit" variant="contained" sx={{ minWidth: "120px" }}>
187-
Fetch Data
230+
<Button
231+
type="submit"
232+
variant="contained"
233+
sx={{
234+
minWidth: "100px",
235+
minHeight: "55px",
236+
alignSelf: "flex-start",
237+
}}
238+
>
239+
Fetch Data
188240
</Button>
189241
</Box>
190242
</form>

0 commit comments

Comments
 (0)