From 2ecc505e78f1ca35b4fc1191846b06b57be71171 Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Tue, 1 Sep 2020 11:38:34 +0200 Subject: [PATCH] Fix generated links --- package.json | 2 - src/components/CreateLinkTile.scss | 6 ++ src/components/CreateLinkTile.tsx | 7 +- yarn.lock | 101 ++--------------------------- 4 files changed, 14 insertions(+), 102 deletions(-) diff --git a/package.json b/package.json index ad67d5f..586b537 100644 --- a/package.json +++ b/package.json @@ -69,14 +69,12 @@ "@types/node": "^12.0.0", "@types/react": "^16.9.0", "@types/react-dom": "^16.9.0", - "@types/react-router-dom": "^5.1.5", "@types/yup": "^0.29.3", "eslint-config-matrix-org": "^0.1.0", "husky": "^4.2.5", "lint-staged": "^10.2.7", "node-sass": "^4.14.1", "prettier": "^2.0.5", - "react-router-dom": "^5.2.0", "storybook-addon-designs": "^5.4.0", "ts-jest": "^26.1.4", "typescript": "~3.7.2" diff --git a/src/components/CreateLinkTile.scss b/src/components/CreateLinkTile.scss index d5aadc5..8222c3c 100644 --- a/src/components/CreateLinkTile.scss +++ b/src/components/CreateLinkTile.scss @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +@import '../color-scheme'; + .createLinkTile { background: none; @@ -29,4 +31,8 @@ limitations under the License. align-self: center; padding: 0 30px; } + + > a { + color: $foreground; + } } diff --git a/src/components/CreateLinkTile.tsx b/src/components/CreateLinkTile.tsx index 06b0c97..51a79eb 100644 --- a/src/components/CreateLinkTile.tsx +++ b/src/components/CreateLinkTile.tsx @@ -21,7 +21,6 @@ import Tile from './Tile'; import Button from './Button'; import TextButton from './TextButton'; import Input from './Input'; - import { parseHash } from '../parser/parser'; import { LinkKind } from '../parser/types'; @@ -68,7 +67,7 @@ const LinkNotCreatedTile: React.FC = ( document.location.protocol + '//' + document.location.host + - '/' + + '/#/' + values.identifier ); }} @@ -106,7 +105,9 @@ const LinkCreatedTile: React.FC = (props) => { props.setLink('')}> Create another lnk -

{props.link}

+ +

{props.link}

+