Skip to content

Commit 19ba9a4

Browse files
committed
Remove unused prop in Logotype component
1 parent b693836 commit 19ba9a4

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/app/components/LayerPicker/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const LayerPickerContent: FC<LayerPickerContentProps> = ({ isOutOfDate, onClose,
6262
return (
6363
<div className="flex flex-col w-full flex-1 lg:block lg:w-auto lg:flex-none">
6464
<div className="relative mb-0 lg:mb-2 lg:mb-10">
65-
<HomePageLink color="#0500e2" showText={!isMobile} />
65+
<HomePageLink showText={!isMobile} />
6666
</div>
6767
{isTablet && (
6868
<div className="flex justify-between items-center min-h-12">

src/app/components/PageLayout/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const Header: FC = () => {
3939
<div className="px-4">
4040
<div className="grid grid-cols-12 pt-3 pb-4 px-0 md:px-[4%]">
4141
<div className="col-span-6 xl:col-span-3 flex items-center">
42-
<HomePageLink showText={!scrollTrigger && !isMobile} color="#0500e2" />
42+
<HomePageLink showText={!scrollTrigger && !isMobile} />
4343
</div>
4444

4545
{withScopeSelector && (

src/app/components/PageLayout/Logotype.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@ import { OasisIcon } from '../CustomIcons/OasisIcon'
66
import { ExplorerIcon } from '../CustomIcons/ExplorerIcon'
77

88
interface LogotypeProps {
9-
color?: string
109
showText: boolean
1110
}
1211

13-
export const HomePageLink: FC<LogotypeProps> = ({ color, showText }) => {
12+
export const HomePageLink: FC<LogotypeProps> = ({ showText }) => {
1413
const { t } = useTranslation()
1514

1615
return (
1716
<RouterLink to="/" aria-label={t('home.link')}>
18-
<Logotype color={color} showText={showText} />
17+
<Logotype showText={showText} />
1918
</RouterLink>
2019
)
2120
}
2221

23-
export const Logotype: FC<LogotypeProps> = ({ color, showText }) => {
22+
export const Logotype: FC<LogotypeProps> = ({ showText }) => {
2423
const { isMobile } = useScreenSize()
2524
const oasisLogoSize = isMobile ? 32 : 40
2625
const logoSize = !showText ? { height: oasisLogoSize, width: oasisLogoSize } : { height: 40, width: 214 }

src/app/pages/HomePage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export const HomePage: FC = () => {
150150
<HomepageLayout>
151151
<Content>
152152
<LogotypeBox>
153-
<Logotype showText color="#0500e2" />
153+
<Logotype showText />
154154
</LogotypeBox>
155155
<SearchInputContainer transparent={isGraphZoomedIn && !searchHasFocus}>
156156
<SearchInputBox>

0 commit comments

Comments
 (0)