Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Resolves the issue regarding copy link in form #53

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

SwastikKasera
Copy link

@SwastikKasera SwastikKasera commented Oct 8, 2023

What does this PR do?

This PR fix the copy button to copy the link of the forms.

Fixes #52

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings
  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

@github-actions
Copy link

github-actions bot commented Oct 8, 2023

Thank you for following the naming conventions! 🙏

@SwastikKasera SwastikKasera changed the title FIX : Copy button fix : Copy button Oct 8, 2023
@SwastikKasera SwastikKasera changed the title fix : Copy button fix: Resolves the issue regarding copy link in form Oct 8, 2023
@@ -3,7 +3,7 @@ import Image from 'next/image'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useState } from 'react'

import toast from 'react-hot-toast'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the import statement above as we're separating our imports from built-in libs to custom libs

@SwastikKasera
Copy link
Author

SwastikKasera commented Oct 9, 2023

Sure, @hemantwasthere. I am working on it

@SwastikKasera
Copy link
Author

I have implemented the suggestion, please review

import Link from 'next/link'
import { useRouter } from 'next/router'
import { useState } from 'react'
import toast from 'react-hot-toast'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put a space of a line between the imports
like this:

import Link from 'next/link'
import { useRouter } from 'next/router'
import { useState } from 'react'
// space here
import { Checkbox } from '@/components/ui/checkbox'
import {
  Tooltip,
  TooltipContent,
  TooltipProvider,
  TooltipTrigger,
} from '@/components/ui/tooltip'

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done sir

gql/graphql.ts Outdated
@@ -73,6 +73,28 @@ export type Form = {
updatedAt?: Maybe<Scalars['Date']['output']>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discard all the other file changes except FormPane.tsx

@github-actions github-actions bot added 🚨 merge conflict Merge Conflict and removed 🚨 merge conflict Merge Conflict labels Oct 10, 2023
@github-actions
Copy link

Hey there, there is a merge conflict, can you take a look?

@github-actions github-actions bot added the 🚨 merge conflict Merge Conflict label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 merge conflict Merge Conflict
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG : Copy button not working
2 participants