Skip to content

Commit

Permalink
feat: Update API key in Upload component
Browse files Browse the repository at this point in the history
  • Loading branch information
bramses committed Aug 17, 2024
1 parent e289010 commit d61677d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[locale]/(auth)/dashboard/upload/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Upload = () => {
{ key: 'author', value: 'https://ycb-companion.onrender.com/dashboard' },
{ key: 'title', value: 'by Bram Adams' },
]);
const apiKey = '09e90c7b3e0c69e0ac38031476c2a224';
const apiKey = 'apikeyyyy';
const [loading, setLoading] = useState(false);

const addField = () => {
Expand Down
14 changes: 14 additions & 0 deletions src/components/SearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,20 @@ const SearchBox = () => {
Search
</button>

{/* a btn to take the text in textarea and search google with it in a new tab */}
<button
type="button"
onClick={() => {
window.open(
`https://www.google.com/search?q=${textAreaValue}`,
'_blank',
);
}}
className="mb-2 me-2 mt-4 w-full rounded-lg bg-gray-700 px-5 py-2.5 text-sm font-medium text-white hover:bg-gray-800 focus:outline-none focus:ring-4 focus:ring-gray-300 dark:bg-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-800"
>
Search the Web
</button>

{showLoading && (
<div className="flex justify-center">
<div
Expand Down

0 comments on commit d61677d

Please sign in to comment.