Skip to content

Commit

Permalink
chore: Remove trading competition banner (LeadInBanner) (pancakeswap#910
Browse files Browse the repository at this point in the history
)
  • Loading branch information
RabbitDoge authored Apr 16, 2021
1 parent 9291d17 commit cdc7f1a
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 150 deletions.
50 changes: 23 additions & 27 deletions src/views/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import TotalValueLockedCard from 'views/Home/components/TotalValueLockedCard'
import EarnAPRCard from 'views/Home/components/EarnAPRCard'
import EarnAssetCard from 'views/Home/components/EarnAssetCard'
import WinCard from 'views/Home/components/WinCard'
import LeadInBanner from 'views/TradingCompetition/components/LeadInBanner'

const Hero = styled.div`
align-items: center;
Expand Down Expand Up @@ -81,32 +80,29 @@ const Home: React.FC = () => {
const TranslateString = useI18n()

return (
<>
<LeadInBanner />
<Page>
<Hero>
<Heading as="h1" size="xl" mb="24px" color="secondary">
{TranslateString(576, 'PancakeSwap')}
</Heading>
<Text>{TranslateString(578, 'The #1 AMM and yield farm on Binance Smart Chain.')}</Text>
</Hero>
<div>
<Cards>
<FarmStakingCard />
<LotteryCard />
</Cards>
<CTACards>
<EarnAPRCard />
<EarnAssetCard />
<WinCard />
</CTACards>
<Cards>
<CakeStats />
<TotalValueLockedCard />
</Cards>
</div>
</Page>
</>
<Page>
<Hero>
<Heading as="h1" size="xl" mb="24px" color="secondary">
{TranslateString(576, 'PancakeSwap')}
</Heading>
<Text>{TranslateString(578, 'The #1 AMM and yield farm on Binance Smart Chain.')}</Text>
</Hero>
<div>
<Cards>
<FarmStakingCard />
<LotteryCard />
</Cards>
<CTACards>
<EarnAPRCard />
<EarnAssetCard />
<WinCard />
</CTACards>
<Cards>
<CakeStats />
<TotalValueLockedCard />
</Cards>
</div>
</Page>
)
}

Expand Down
22 changes: 9 additions & 13 deletions src/views/Profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import ProfileCreation from './ProfileCreation'
import Header from './components/Header'
import TaskCenter from './TaskCenter'
import PublicProfile from './PublicProfile'
import LeadInBanner from '../TradingCompetition/components/LeadInBanner'

const Profile = () => {
const { isInitialized, isLoading, hasProfile } = useProfile()
Expand All @@ -29,18 +28,15 @@ const Profile = () => {
}

return (
<>
<LeadInBanner />
<Page>
<Header />
<Route exact path="/profile">
<PublicProfile />
</Route>
<Route path="/profile/tasks">
<TaskCenter />
</Route>
</Page>
</>
<Page>
<Header />
<Route exact path="/profile">
<PublicProfile />
</Route>
<Route path="/profile/tasks">
<TaskCenter />
</Route>
</Page>
)
}

Expand Down
28 changes: 12 additions & 16 deletions src/views/Teams/Team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import useI18n from 'hooks/useI18n'
import { useTeam } from 'state/hooks'
import TeamCard from './components/TeamCard'
import TeamHeader from './components/TeamHeader'
import LeadInBanner from '../TradingCompetition/components/LeadInBanner'

const Team = () => {
const { id: idStr }: { id: string } = useParams()
Expand All @@ -26,21 +25,18 @@ const Team = () => {
}

return (
<>
<LeadInBanner />
<Page>
<TeamHeader />
<Flex mb="24px">
<Link to="/teams">
<Flex alignItems="center">
<ChevronLeftIcon color="primary" />
<Text color="primary">{TranslateString(1038, 'Teams Overview')}</Text>
</Flex>
</Link>
</Flex>
<TeamCard team={team} />
</Page>
</>
<Page>
<TeamHeader />
<Flex mb="24px">
<Link to="/teams">
<Flex alignItems="center">
<ChevronLeftIcon color="primary" />
<Text color="primary">{TranslateString(1038, 'Teams Overview')}</Text>
</Flex>
</Link>
</Flex>
<TeamCard team={team} />
</Page>
)
}

Expand Down
24 changes: 10 additions & 14 deletions src/views/Teams/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Page from 'components/layout/Page'
import useI18n from 'hooks/useI18n'
import TeamListCard from './components/TeamListCard'
import TeamHeader from './components/TeamHeader'
import LeadInBanner from '../TradingCompetition/components/LeadInBanner'

const Teams = () => {
const TranslateString = useI18n()
Expand All @@ -15,19 +14,16 @@ const Teams = () => {
const topTeams = orderBy(teamList, ['points', 'id', 'name'], ['desc', 'asc', 'asc'])

return (
<>
<LeadInBanner />
<Page>
<TeamHeader />
<Flex alignItems="center" justifyContent="space-between" mb="32px">
<Heading size="xl">{TranslateString(1040, 'Teams')}</Heading>
{isLoading && <AutoRenewIcon spin />}
</Flex>
{topTeams.map((team, index) => (
<TeamListCard key={team.id} rank={index + 1} team={team} />
))}
</Page>
</>
<Page>
<TeamHeader />
<Flex alignItems="center" justifyContent="space-between" mb="32px">
<Heading size="xl">{TranslateString(1040, 'Teams')}</Heading>
{isLoading && <AutoRenewIcon spin />}
</Flex>
{topTeams.map((team, index) => (
<TeamListCard key={team.id} rank={index + 1} team={team} />
))}
</Page>
)
}

Expand Down
80 changes: 0 additions & 80 deletions src/views/TradingCompetition/components/LeadInBanner/index.tsx

This file was deleted.

0 comments on commit cdc7f1a

Please sign in to comment.