File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 11import React , { useEffect , useState } from 'react' ;
2+
23import IconArrowUp from '../icons/Scroll-up-arrow' ;
34
45/**
@@ -7,7 +8,6 @@ import IconArrowUp from '../icons/Scroll-up-arrow';
78 */
89function ScrollButton ( ) {
910 const [ backToTopButton , setBackToTopButton ] = useState ( false ) ;
10- const scrollImage = '/img/loaders/scroll.svg' ;
1111
1212 useEffect ( ( ) => {
1313 window . addEventListener ( 'scroll' , ( ) => {
@@ -33,7 +33,7 @@ function ScrollButton() {
3333 className = 'rounded-full bg-white shadow-xl transition-all duration-200 ease-linear hover:scale-110 hover:bg-[#8851FB]'
3434 onClick = { scrollUp }
3535 >
36- < IconArrowUp className = " w-12 h-12 px-2 py-2 text-gray-900 hover:text-white" />
36+ < IconArrowUp className = ' w-12 h-12 px-2 py-2 text-gray-900 hover:text-white' />
3737 </ button >
3838 ) }
3939 </ div >
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ export default function ArrowUp({ className = '' }) {
77 return (
88 < svg
99 className = { className || 'inline-block' }
10- fill = " currentColor"
11- viewBox = " 0 0 20 20"
12- xmlns = " http://www.w3.org/2000/svg"
10+ fill = ' currentColor'
11+ viewBox = ' 0 0 20 20'
12+ xmlns = ' http://www.w3.org/2000/svg'
1313 >
1414 < path
15- fillRule = " evenodd"
16- d = " M10 3a1 1 0 01.707.293l4 4a1 1 0 01-1.414 1.414L11 6.414V17a1 1 0 11-2 0V6.414L6.707 8.707A1 1 0 015.293 7.293l4-4A1 1 0 0110 3z"
17- clipRule = " evenodd"
15+ fillRule = ' evenodd'
16+ d = ' M10 3a1 1 0 01.707.293l4 4a1 1 0 01-1.414 1.414L11 6.414V17a1 1 0 11-2 0V6.414L6.707 8.707A1 1 0 015.293 7.293l4-4A1 1 0 0110 3z'
17+ clipRule = ' evenodd'
1818 />
1919 </ svg >
2020 ) ;
Original file line number Diff line number Diff line change 1+ /// <reference types="next" />
2+ /// <reference types="next/image-types/global" />
3+ /// <reference path="./.next/types/routes.d.ts" />
4+
5+ // NOTE: This file should not be edited
6+ // see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
You can’t perform that action at this time.
0 commit comments