From e6180e3b1818a0b7d76c31c58a8f359e6994812b Mon Sep 17 00:00:00 2001 From: Abdelrahman Abdelhafez Date: Mon, 11 Jan 2021 01:11:47 +0100 Subject: [PATCH 1/3] Format README code snippets --- README.md | 94 +++++++++++++++++++++++++++---------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index cf38a8e..573b534 100644 --- a/README.md +++ b/README.md @@ -30,39 +30,39 @@ npm install --save react-planet import { Planet } from 'react-planet'; export function MyPlanet() { - return ( - - } - open - autoClose - > -
-
- - ); + return ( + + } + open + autoClose + > +
+
+ + ); } ``` @@ -71,11 +71,12 @@ export function MyPlanet() { ```jsx -} - open - orbitRadius={120} - rotation={30} - ... +} + open + orbitRadius={120} + rotation={30} + ... > ``` @@ -106,8 +107,8 @@ export function MyPlanet() { ```jsx From 31904dbc6660af8f57f808e3d963e7aa83a98386 Mon Sep 17 00:00:00 2001 From: Abdelrahman Abdelhafez Date: Mon, 11 Jan 2021 01:16:49 +0100 Subject: [PATCH 2/3] Format README code snippets --- README.md | 77 +++++++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 573b534..34767be 100644 --- a/README.md +++ b/README.md @@ -72,9 +72,9 @@ export function MyPlanet() { ```jsx } - open - orbitRadius={120} + centerContent={
} + open + orbitRadius={120} rotation={30} ... > @@ -86,18 +86,18 @@ export function MyPlanet() { ```jsx ({ - ...defaultStyle, - borderWidth: 4, - borderStyle: 'dashed', - borderColor: '#6f03fc', - })} - centerContent={
} - open + orbitStyle={(defaultStyle) => ({ + ...defaultStyle, + borderWidth: 4, + borderStyle: 'dashed', + borderColor: '#6f03fc', + })} + centerContent={
} + open > -
-
-
+
+
+
``` @@ -107,9 +107,8 @@ export function MyPlanet() { ```jsx } - hideOrbit - autoClose - orbitRadius={60} - bounceOnClose - rotation={105} - // the bounce direction is minimal visible - // but on close it seems the button wobbling a bit to the bottom - bounceDirection="BOTTOM" + centerContent={} + hideOrbit + autoClose + orbitRadius={60} + bounceOnClose + rotation={105} + // the bounce direction is minimal visible + // but on close it seems the button wobbling a bit to the bottom + bounceDirection="BOTTOM" > - - - -
-
-
-
+ + + +
+
+
+
``` @@ -163,9 +162,9 @@ Code: [/src/stories/Planetception.stories.tsx](/src/stories/Planetception.storie ```jsx From 4044bb27cbdc1a430edbbf74632ba016a7ef453c Mon Sep 17 00:00:00 2001 From: Abdelrahman Abdelhafez Date: Mon, 11 Jan 2021 01:18:08 +0100 Subject: [PATCH 3/3] Format README code snippets --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34767be..ef9c8f5 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,8 @@ export function MyPlanet() { centerContent={
} open orbitRadius={120} - rotation={30} - ... + rotation={30} + ... > ```