Skip to content

Commit f4c3e96

Browse files
Merge pull request #267 from MARYAMAHMED08/feat/add-pat-helper-link
Added [feature]: PAT helper link for token generation guide
2 parents 52114fa + 7f49820 commit f4c3e96

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

src/pages/Tracker/Tracker.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,26 @@ const Home: React.FC = () => {
182182
onChange={(e) => setToken(e.target.value)}
183183
type="password"
184184
sx={{ flex: 1, minWidth: 150 }}
185+
// Helper link to guide users on generating a GitHub Personal Access Token
186+
helperText={
187+
<Link
188+
href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens"
189+
target="_blank"
190+
rel="noopener noreferrer"
191+
sx={{
192+
fontSize: '0.75rem',
193+
color: 'primary.main',
194+
textDecoration: 'none',
195+
'&:hover': {
196+
textDecoration: 'underline',
197+
}
198+
}}
199+
>
200+
How to generate?
201+
</Link>
202+
}
185203
/>
204+
186205
<Button type="submit" variant="contained" sx={{ minWidth: "120px" }}>
187206
Fetch Data
188207
</Button>

0 commit comments

Comments
 (0)