aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2019-01-10 04:12:05 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2019-01-11 09:41:13 +0800
commit89e398fa39fd14c9fd4a467fdd039920fb28a420 (patch)
tree95a50e9d5c151d66f155de77d08cc203f250cccf /packages/react-shared
parent53fc860d6190c19f13c451eb89dd5c0c1cdcd1f4 (diff)
downloaddexon-sol-tools-89e398fa39fd14c9fd4a467fdd039920fb28a420.tar
dexon-sol-tools-89e398fa39fd14c9fd4a467fdd039920fb28a420.tar.gz
dexon-sol-tools-89e398fa39fd14c9fd4a467fdd039920fb28a420.tar.bz2
dexon-sol-tools-89e398fa39fd14c9fd4a467fdd039920fb28a420.tar.lz
dexon-sol-tools-89e398fa39fd14c9fd4a467fdd039920fb28a420.tar.xz
dexon-sol-tools-89e398fa39fd14c9fd4a467fdd039920fb28a420.tar.zst
dexon-sol-tools-89e398fa39fd14c9fd4a467fdd039920fb28a420.zip
Update prettier to version ^1.15.3
Diffstat (limited to 'packages/react-shared')
-rw-r--r--packages/react-shared/CHANGELOG.json3
-rw-r--r--packages/react-shared/src/components/anchor_title.tsx21
2 files changed, 10 insertions, 14 deletions
diff --git a/packages/react-shared/CHANGELOG.json b/packages/react-shared/CHANGELOG.json
index aaf2485d1..23217137f 100644
--- a/packages/react-shared/CHANGELOG.json
+++ b/packages/react-shared/CHANGELOG.json
@@ -3,8 +3,7 @@
"version": "1.1.0",
"changes": [
{
- "note":
- "Change implementation to use react-router-dom NavLink instead of Link. Expose `activeStyle` prop.",
+ "note": "Change implementation to use react-router-dom NavLink instead of Link. Expose `activeStyle` prop.",
"pr": 1448
}
],
diff --git a/packages/react-shared/src/components/anchor_title.tsx b/packages/react-shared/src/components/anchor_title.tsx
index a9105e132..fccd56de7 100644
--- a/packages/react-shared/src/components/anchor_title.tsx
+++ b/packages/react-shared/src/components/anchor_title.tsx
@@ -32,18 +32,15 @@ interface AnchorIconProps {
shouldShowAnchor: boolean;
}
-const AnchorIcon =
- styled.i <
- AnchorIconProps >
- `
- opacity: ${props => (props.shouldShowAnchor ? 1 : 0)};
- &:hover {
- opacity: ${props => (props.shouldShowAnchor ? 0.6 : 0)};
- }
- font-size: 20px;
- transform: rotate(45deg);
- cursor: pointer;
- `;
+const AnchorIcon = styled.i<AnchorIconProps>`
+ opacity: ${props => (props.shouldShowAnchor ? 1 : 0)};
+ &:hover {
+ opacity: ${props => (props.shouldShowAnchor ? 0.6 : 0)};
+ }
+ font-size: 20px;
+ transform: rotate(45deg);
+ cursor: pointer;
+`;
export class AnchorTitle extends React.Component<AnchorTitleProps, AnchorTitleState> {
public static defaultProps: Partial<AnchorTitleProps> = {