Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Nov 15, 2024
1 parent 896cb3c commit 893647b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/components/pages/campaigns/questItem/refQuest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function BasicQuest({
checkQuestHandler: () => void
}) {
const { t } = useTranslation()
const { locale } = useRouter()
const { locale, pathname } = useRouter()
const { account } = useContext(Context)
const { setMigrateWalletOpen, setWalletConnectOpen } = useContext(ModalContext)
const config = getConfig()
Expand Down Expand Up @@ -96,9 +96,7 @@ export default function BasicQuest({
return (
<Link
className='w-full grid place-items-center'
href={`${config.REST_API_URL}/twitter/connect/${encodeURIComponent(
location.origin + location.pathname
)}`}>
href={`${config.REST_API_URL}/twitter/connect/${encodeURIComponent(location.origin + pathname)}`}>
<Button className='w-full' size='sm'>
<div className='w-full flex items-center gap-1'>
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'>
Expand Down Expand Up @@ -137,9 +135,7 @@ export default function BasicQuest({
return (
<Link
className='w-full grid place-items-center'
href={`${config.REST_API_URL}/twitter/connect/${encodeURIComponent(
location.origin + location.pathname
)}`}>
href={`${config.REST_API_URL}/twitter/connect/${encodeURIComponent(location.origin + pathname)}`}>
<Button className='w-full' size='sm'>
<div className='w-full flex items-center gap-1'>
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'>
Expand Down Expand Up @@ -177,9 +173,7 @@ export default function BasicQuest({
return (
<Link
className='w-full grid place-items-center'
href={`${config.REST_API_URL}/discord/connect/${encodeURIComponent(
location.origin + location.pathname
)}`}>
href={`${config.REST_API_URL}/discord/connect/${encodeURIComponent(location.origin + pathname)}`}>
<Button className='w-full' size='sm'>
<div className='w-full flex items-center gap-1'>
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'>
Expand Down
3 changes: 3 additions & 0 deletions src/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
--medium-red: #ff5c00;
user-select:none;
}
.grecaptcha-badge {
visibility: hidden;
}
#__next {
background: #fff;
}
Expand Down

0 comments on commit 893647b

Please sign in to comment.