Skip to content

Commit

Permalink
breaks resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ashura-code committed Jan 3, 2024
1 parent 3c849d0 commit 21305ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion comps/Collection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Collection: React.FC = () => {
return JSON.parse(cachedData);
} else {
const apiUrl = `https://api.github.com/search/issues?q=is:open+is:issue+org:${org.org}+label:%22good+first+issue%22`;
const token = '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';
const token = process.env.NEXT_PUBLIC_AUTH_TOKEN;

try {
const data = await fetcher(apiUrl, token);
Expand Down
3 changes: 2 additions & 1 deletion comps/Tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function Tile({ title, body, organization, language, label, date
}

const new_body = truncateText(body, 50);
const new_title = truncateText(title,25);

// Function to format the date
function formatRelativeDate(dateString) {
Expand All @@ -43,7 +44,7 @@ export default function Tile({ title, body, organization, language, label, date
return (
<Card className='w-[350px] sm:w-[450px] h-[300px] m-2 p-1 dark:bg-[#2A2C31] '>
<CardHeader>
<CardTitle>{title}</CardTitle>
<CardTitle>{new_title}</CardTitle>
<CardDescription className='text-clip'>{new_body}</CardDescription>
</CardHeader>
<CardContent>
Expand Down

0 comments on commit 21305ed

Please sign in to comment.