Skip to content

Commit

Permalink
Merge pull request #40 from KATITB22/task/image-draggable
Browse files Browse the repository at this point in the history
Task/image draggable
  • Loading branch information
msyahrulsp authored Aug 22, 2022
2 parents 8ba220e + 340ff5f commit 7303cc4
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/components/Homepage/Event/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const Event: () => JSX.Element = () => {
>
<Image
display={{ base: 'none', lg: 'block' }}
draggable="false"
src={ImageBalloon}
objectFit="contain"
/>
Expand Down Expand Up @@ -89,6 +90,7 @@ const Event: () => JSX.Element = () => {
>
<Image
src={ImageJoget}
draggable="false"
objectFit="contain"
alignSelf={{ base: 'center', lg: 'flex-start' }}
/>
Expand Down
2 changes: 2 additions & 0 deletions src/components/Homepage/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const Hero = () => (
<Image
src={gedungKiri}
alt="Gedung Kiri"
draggable="false"
position="absolute"
top="20px"
left={{
Expand All @@ -78,6 +79,7 @@ const Hero = () => (
<Image
src={gedungKanan}
alt="Gedung Kanan"
draggable="false"
position="absolute"
top="20px"
right={{
Expand Down
1 change: 1 addition & 0 deletions src/components/Homepage/UnitRecommendation/_Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const Card = ({ label, isActive, isInView, onClick }: CardProps) => (
>
<Flex h="full" justifyContent="center" alignItems="center">
<Image
draggable="false"
w={{
base: '7em',
lg: '10em'
Expand Down
1 change: 1 addition & 0 deletions src/components/Homepage/UnitShowcase/_Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const Card = ({ img, label }: ICard) => (
<Center h="70%">
<Image
src={img}
draggable="false"
w={{
base: '8em',
lg: '11em'
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Loading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const LoadingOnly = () => (
flexDirection="column"
userSelect="none"
>
<Image src={GIF} objectFit="contain" w="md" zIndex={-99} ml={-20} />
<Image src={GIF} objectFit="contain" w="md" zIndex={-99} ml={-20} draggable="false" />
<Box
display="flex"
flexDirection="row"
Expand Down
5 changes: 3 additions & 2 deletions src/components/common/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const Navbar = () => {
</MenuButton>
<MenuList borderColor="#FFA06E">
<MenuItem fontFamily="Subheading">
<Image src={DashboardLogo} mr="4" alt="dashboard_logo" />
<Image src={DashboardLogo} mr="4" alt="dashboard_logo" draggable="false"/>
<Text>Dashboard</Text>
</MenuItem>
<MenuDivider />
<MenuItem onClick={() => setIsLogin(false)} fontFamily="Subheading">
<Image src={LogoutLogo} mr="4" alt="logout_logo" />
<Image src={LogoutLogo} mr="4" alt="logout_logo" draggable="false" />
<Text>Logout</Text>
</MenuItem>
</MenuList>
Expand Down Expand Up @@ -99,6 +99,7 @@ const Navbar = () => {
{/* TODO: ganti logo */}
<Image
src={Logo}
draggable="false"
w="50px"
objectFit="contain"
mr={{ base: 0, md: 2 }}
Expand Down
1 change: 1 addition & 0 deletions src/components/common/footer/temp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const TempFooter = () => (
>
<Image
src={Logo}
draggable="false"
w="50px"
objectFit="contain"
mr={{ base: 0, md: 2 }}
Expand Down
1 change: 1 addition & 0 deletions src/components/map-tour/Legend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const TourLegend = ({
borderRadius="full"
boxSize="67px"
src={logo}
draggable="false"
onClick={() => map?.setView(position)}
/>
<Text textAlign="center" fontSize="30px" m="auto 27px" mr="0">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/PageNotFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const PageNotFound = () => (
h="100vh"
position="relative"
>
<Image objectFit="cover" src={pageNotFoundImage} w="100%" maxW="70ch" />
<Image objectFit="cover" src={pageNotFoundImage} w="100%" maxW="70ch" draggable="false"/>
<Box pt={10}>
<Heading
fontWeight="400"
Expand Down

0 comments on commit 7303cc4

Please sign in to comment.