@times-components/ts-components 1.133.0 → 1.134.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/components/quizle-sidebar/QuizleSidebar.js +3 -4
- package/dist/components/quizle-sidebar/styles.d.ts +0 -1
- package/dist/components/quizle-sidebar/styles.js +5 -9
- package/package.json +13 -13
- package/rnw.js +1 -1
- package/src/components/quizle-sidebar/QuizleSidebar.tsx +1 -3
- package/src/components/quizle-sidebar/__tests__/__snapshots__/index.test.tsx.snap +5 -8
- package/src/components/quizle-sidebar/styles.ts +4 -9
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { FC, useEffect, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Container,
|
|
4
|
-
Titletag,
|
|
5
4
|
Divider,
|
|
6
5
|
Link,
|
|
7
6
|
Title,
|
|
@@ -72,8 +71,7 @@ export const QuizleSidebar: FC<QuizleSideBarProps> = ({
|
|
|
72
71
|
<Container>
|
|
73
72
|
<>
|
|
74
73
|
<TitleIconContainer>
|
|
75
|
-
<div>
|
|
76
|
-
<Titletag>BETA</Titletag>
|
|
74
|
+
<div className="titleWrapper">
|
|
77
75
|
<Link
|
|
78
76
|
href={pageLink}
|
|
79
77
|
onClick={() =>
|
|
@@ -6,14 +6,11 @@ exports[`QuizleSidebar should render QuizleSidebar component 1`] = `
|
|
|
6
6
|
class="sc-bdVaJa cMctWl"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="sc-ifAKCX
|
|
9
|
+
class="sc-ifAKCX diojoA"
|
|
10
10
|
>
|
|
11
|
-
<div
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
>
|
|
15
|
-
BETA
|
|
16
|
-
</h3>
|
|
11
|
+
<div
|
|
12
|
+
class="titleWrapper"
|
|
13
|
+
>
|
|
17
14
|
<a
|
|
18
15
|
class="trigger sc-bxivhb dfGUog"
|
|
19
16
|
href="https://www.thetimes.com/puzzles"
|
|
@@ -34,7 +31,7 @@ exports[`QuizleSidebar should render QuizleSidebar component 1`] = `
|
|
|
34
31
|
class="sc-htpNat eWIklo"
|
|
35
32
|
/>
|
|
36
33
|
<div
|
|
37
|
-
class="sc-
|
|
34
|
+
class="sc-bZQynM ggcUxy"
|
|
38
35
|
>
|
|
39
36
|
<p>
|
|
40
37
|
<span
|
|
@@ -55,6 +55,10 @@ export const TitleIconContainer = styled.div`
|
|
|
55
55
|
height: 40px;
|
|
56
56
|
margin-left: 8px;
|
|
57
57
|
}
|
|
58
|
+
& .titleWrapper {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
}
|
|
58
62
|
`;
|
|
59
63
|
|
|
60
64
|
export const Title = styled.h3`
|
|
@@ -66,15 +70,6 @@ export const Title = styled.h3`
|
|
|
66
70
|
margin: 2px 0 0;
|
|
67
71
|
`;
|
|
68
72
|
|
|
69
|
-
export const Titletag = styled.h3`
|
|
70
|
-
font-family: 'Roboto';
|
|
71
|
-
font-size: 12px;
|
|
72
|
-
font-weight: 700;
|
|
73
|
-
line-height: 18px;
|
|
74
|
-
text-align: left;
|
|
75
|
-
margin-block: 0;
|
|
76
|
-
`;
|
|
77
|
-
|
|
78
73
|
export const Bottom = styled.div`
|
|
79
74
|
display: flex;
|
|
80
75
|
flex-direction: column;
|