Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: share/copy btn for light mode (#58)

Arnold Chand60d3ab05433d
diff --git a/.vimrc.json b/.vimrc.json
new file mode 100644
index 00000000..2d486abd
--- /dev/null
+++ b/.vimrc.json
@@ -0,0 +1,20 @@
+{
+ "projectlocal": {
+ "nvim-lsp": ["tsserver"],
+ "ale": {
+ "fixers": {
+ "typescript": ["prettier"],
+ "typescriptreact": ["prettier"],
+ "javascript": ["prettier"],
+ "javascriptreact": ["prettier"]
+ },
+ "linters": {
+ "typescript": ["eslint"],
+ "typescriptreact": ["eslint"],
+ "javascript": ["eslint"],
+ "javascriptreact": ["eslint"]
+ }
+ }
+ }
+}
+
diff --git a/src/components/challenge/share-form.tsx b/src/components/challenge/share-form.tsx
index bb567934..f0a6c966 100644
--- a/src/components/challenge/share-form.tsx
+++ b/src/components/challenge/share-form.tsx
@@ -27,8 +27,8 @@ export function ShareForm() {
<p>Copy this challenge url to share with your friends!</p>
<code className="px-4 py-2 border dark:border-gray-300 rounded-md">{url}</code>
<button
- className={`ml-auto mt-4 flex items-center justify-between space-x-2 rounded-lg px-3 py-2 duration-300 active:scale-75
- ${copied ? 'bg-green-500 dark:bg-green-700 dark:text-white' : 'text-black dark:bg-white'}`}
+ className={`ml-auto mt-4 flex items-center justify-between space-x-2 rounded-lg px-3 py-2 duration-300 active:scale-75
+ ${copied ? 'text-green-500 border border-green-500 dark:border-green-700 dark:bg-green-700 dark:text-white' : 'text-black dark:bg-white border border-gray-100 hover:bg-gray-100'}`}
onClick={() => void copyToClipboard()}
>
<span>{copied ? 'Copied!' : 'Copy'}</span>