Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit a575030

Browse files
committed
2 parents 9c92cc6 + b377049 commit a575030

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+378
-154
lines changed

.secrets-baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@
3737
],
3838
"results": {},
3939
"version": "0.12.4"
40-
}
40+
}

i18n/translations/de-DE.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
"sorry-we-could-not-find-it": "Entschuldigung, wir konnten es nicht finden..."
134134
},
135135
"app-context-not-correct-used": "Der App-Kontext wurde nicht korrekt verwendet",
136+
"theme-context-not-correct-used": "Der Theme-Kontext wurde nicht korrekt verwendet",
136137
"package-meta-is-required-at-detail-context": "packageMeta wird bei DetailContext benötigt"
137138
}
138139
}

i18n/translations/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
"sorry-we-could-not-find-it": "Sorry, we couldn't find it..."
134134
},
135135
"app-context-not-correct-used": "The app context was not correct used",
136+
"theme-context-not-correct-used": "The theme context was not correct used",
136137
"package-meta-is-required-at-detail-context": "packageMeta is required at DetailContext"
137138
}
138139
}

i18n/translations/es-ES.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
"sorry-we-could-not-find-it": "Lo siento, no hemos podido encontrarlo..."
134134
},
135135
"app-context-not-correct-used": "El contexto de la aplicación no fue correctamente usado",
136+
"theme-context-not-correct-used": "El contexto del tema no fue correctamente usado",
136137
"package-meta-is-required-at-detail-context": "packageMeta es requerido en DetailContext"
137138
}
138139
}

i18n/translations/pt-BR.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
"sorry-we-could-not-find-it": "Desculpe, não conseguimos encontrar..."
134134
},
135135
"app-context-not-correct-used": "O contexto do aplicativo não foi usado corretamente",
136+
"theme-context-not-correct-used": "O contexto do tema não foi usado corretamente",
136137
"package-meta-is-required-at-detail-context": "packageMeta é requerido em DetailContext"
137138
}
138139
}

src/App/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import AppRoute, { history } from './AppRoute';
1919
import loadDayJSLocale from './load-dayjs-locale';
2020

2121
const StyledBox = styled(Box)<{ theme?: Theme }>(({ theme }) => ({
22-
backgroundColor: theme && theme.palette.white,
22+
backgroundColor: theme?.palette.background.default,
2323
}));
2424

2525
const StyledBoxContent = styled(Box)<{ theme?: Theme }>(({ theme }) => ({

src/App/__snapshots__/App.test.tsx.snap

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,30 @@ exports[`<App /> should display the Header component 1`] = `
522522
class="MuiTouchRipple-root"
523523
/>
524524
</button>
525+
<button
526+
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit"
527+
tabindex="0"
528+
type="button"
529+
>
530+
<span
531+
class="MuiIconButton-label"
532+
>
533+
<svg
534+
aria-hidden="true"
535+
class="MuiSvgIcon-root"
536+
focusable="false"
537+
role="presentation"
538+
viewBox="0 0 24 24"
539+
>
540+
<path
541+
d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"
542+
/>
543+
</svg>
544+
</span>
545+
<span
546+
class="MuiTouchRipple-root"
547+
/>
548+
</button>
525549
<button
526550
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-colorInherit"
527551
data-testid="header--button-login"
@@ -1176,6 +1200,30 @@ exports[`<App /> should display the Loading component at the beginning 1`] = `
11761200
class="MuiTouchRipple-root"
11771201
/>
11781202
</button>
1203+
<button
1204+
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit"
1205+
tabindex="0"
1206+
type="button"
1207+
>
1208+
<span
1209+
class="MuiIconButton-label"
1210+
>
1211+
<svg
1212+
aria-hidden="true"
1213+
class="MuiSvgIcon-root"
1214+
focusable="false"
1215+
role="presentation"
1216+
viewBox="0 0 24 24"
1217+
>
1218+
<path
1219+
d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"
1220+
/>
1221+
</svg>
1222+
</span>
1223+
<span
1224+
class="MuiTouchRipple-root"
1225+
/>
1226+
</button>
11791227
<button
11801228
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-colorInherit"
11811229
data-testid="header--button-login"

src/components/DetailContainer/DetailContainerTabs.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useTranslation } from 'react-i18next';
44

55
import { default as MuiTabs } from '../../muiComponents/Tabs';
66
import Tab from '../../muiComponents/Tab';
7+
import { Theme } from '../../design-tokens/theme';
78

89
interface Props {
910
onChange: (event, newValue) => void;
@@ -14,12 +15,7 @@ const DetailContainerTabs: React.FC<Props> = ({ tabPosition, onChange }) => {
1415
const { t } = useTranslation();
1516

1617
return (
17-
<Tabs
18-
indicatorColor={'primary'}
19-
onChange={onChange}
20-
textColor={'primary'}
21-
value={tabPosition}
22-
variant={'fullWidth'}>
18+
<Tabs color={'primary'} indicatorColor={'primary'} onChange={onChange} value={tabPosition} variant={'fullWidth'}>
2319
<Tab data-testid={'readme-tab'} id={'readme-tab'} label={t('tab.readme')} />
2420
<Tab data-testid={'dependencies-tab'} id={'dependencies-tab'} label={t('tab.dependencies')} />
2521
<Tab data-testid={'versions-tab'} id={'versions-tab'} label={t('tab.versions')} />
@@ -30,6 +26,6 @@ const DetailContainerTabs: React.FC<Props> = ({ tabPosition, onChange }) => {
3026

3127
export default DetailContainerTabs;
3228

33-
const Tabs = styled(MuiTabs)({
29+
const Tabs = styled(MuiTabs)<{ theme?: Theme }>({
3430
marginBottom: 16,
3531
});

src/components/DetailContainer/__snapshots__/DetailContainer.test.tsx.snap

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ exports[`DetailContainer renders correctly 1`] = `
1010
>
1111
<div
1212
class="MuiTabs-root emotion-0 emotion-1"
13+
color="primary"
1314
>
1415
<div
1516
class="MuiTabs-scroller MuiTabs-fixed"
@@ -21,7 +22,7 @@ exports[`DetailContainer renders correctly 1`] = `
2122
>
2223
<button
2324
aria-selected="true"
24-
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary Mui-selected MuiTab-fullWidth"
25+
class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit Mui-selected MuiTab-fullWidth"
2526
data-testid="readme-tab"
2627
id="readme-tab"
2728
role="tab"
@@ -39,7 +40,7 @@ exports[`DetailContainer renders correctly 1`] = `
3940
</button>
4041
<button
4142
aria-selected="false"
42-
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth"
43+
class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit MuiTab-fullWidth"
4344
data-testid="dependencies-tab"
4445
id="dependencies-tab"
4546
role="tab"
@@ -57,7 +58,7 @@ exports[`DetailContainer renders correctly 1`] = `
5758
</button>
5859
<button
5960
aria-selected="false"
60-
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth"
61+
class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit MuiTab-fullWidth"
6162
data-testid="versions-tab"
6263
id="versions-tab"
6364
role="tab"
@@ -75,7 +76,7 @@ exports[`DetailContainer renders correctly 1`] = `
7576
</button>
7677
<button
7778
aria-selected="false"
78-
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth"
79+
class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit MuiTab-fullWidth"
7980
data-testid="uplinks-tab"
8081
id="uplinks-tab"
8182
role="tab"

src/components/DetailSidebar/DetailSidebar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ import { Theme } from '../../design-tokens/theme';
1515
import DetailSidebarTitle from './DetailSidebarTitle';
1616
import DetailSidebarFundButton from './DetailSidebarFundButton';
1717

18-
const StyledPaper = styled(Paper)<{ theme?: Theme }>(({ theme }) => ({
19-
padding: theme.spacing(3, 2),
20-
}));
21-
2218
const DetailSidebar: React.FC = () => {
2319
const detailContext = useContext(DetailContext);
2420

@@ -50,3 +46,7 @@ const DetailSidebar: React.FC = () => {
5046
};
5147

5248
export default DetailSidebar;
49+
50+
const StyledPaper = styled(Paper)<{ theme?: Theme }>(({ theme }) => ({
51+
padding: theme?.spacing(3, 2),
52+
}));

0 commit comments

Comments
 (0)