Skip to content

Commit

Permalink
♻️ strategies: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JuampiRombola committed Sep 26, 2023
1 parent c7b27be commit 685fcf8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions components/strategies/FeaturedStrategies/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ type Props = {
function FeaturedStrategies({ featured }: Props) {
return (
<Grid container spacing={3}>
{featured.map((props, i) => (
<Grid item sm={12} md={4} display="flex" justifyContent="center" width="100%" key={i}>
<StrategyCard {...props} />
{featured.map((strategy, i) => (
<Grid item sm={12} md={4} display="flex" justifyContent="center" width="100%" key={`${strategy.title}-${i}`}>
<StrategyCard {...strategy} />
</Grid>
))}
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion components/strategies/StrategyCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function StrategyCard({ title, description, button, tags, imgPath, isNew, source
>
<Box display="flex" flexDirection="column" gap={2.2}>
<Box display="flex" flexWrap="wrap" alignItems="center" gap={1}>
{tags?.map((label, i) => <StrategyTag key={i} {...label} />)}
{tags?.map((label, i) => <StrategyTag key={`${label.text}-${i}`} {...label} />)}
</Box>
<Typography variant="h6" component="div" color="grey.900">
{title}
Expand Down
4 changes: 2 additions & 2 deletions i18n/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@
"Token allowance surplus after operation": "Excedente de permisos de token luego de la operación",
"up to": "hasta",
"Refinance Loans": "Refinancia tus préstamos",
"FROM": "Desde",
"FROM": "DESDE",
"Deposit EXA on Extra Finance": "Deposita EXA en Extra Finance",
"Deposit EXA on Extra Finance and earn interest on it.": "Deposita EXA en Extra Finance y gana intereses sobre él.",
"Go to Extra Finance": "Ir a Extra Finance",
Expand All @@ -473,7 +473,7 @@
"Go to Velodrome": "Ir a Velodrome",
"Bridge & Swap with Socket": "Bridge & Swap con Socket",
"Seamlessly bridge and swap assets to OP Mainnet from many different networks.": "Pase y cambie activos de manera fluida a OP Mainnet desde muchas redes diferentes.",
"Cross Network": "Red Cruzada",
"Cross Network": "Multired",
"Featured Strategies": "Estrategias Destacadas",
"Exactly Powered": "Por Exactly",
"Third-Party Powered": "Por Terceros",
Expand Down
2 changes: 1 addition & 1 deletion pages/security/periphery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Security: NextPage = () => {
'The DebtManager contract is responsible for the leverage, deleverage, and rollover functionality of the protocol.',
),
reports: ['ABDK'],
information: [`629 ${t('lines')} (515 ${t('lines of code')}), 24.9 kb`], //TODO change
information: [`629 ${t('lines')} (515 ${t('lines of code')}), 24.9 kb`],
proxy: async () => {
return [{ name: '', address: await getContractAddress('DebtManager_Proxy') }];
},
Expand Down
6 changes: 3 additions & 3 deletions pages/strategies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const Strategies: NextPage = () => {
[hfLabel, lowestBorrowAPR, maxYield, startDebtManager, startLeverager, t],
);

const thirdPartStrategies: (Strategy & { chainId?: number })[] = useMemo(
const thirdPartyStrategies: (Strategy & { chainId?: number })[] = useMemo(
() =>
[
{
Expand Down Expand Up @@ -324,10 +324,10 @@ const Strategies: NextPage = () => {
borderRadius="8px"
boxShadow={({ palette }) => (palette.mode === 'light' ? '0px 3px 4px 0px rgba(97, 102, 107, 0.25)' : '')}
>
{thirdPartStrategies.map((strategy, i) => (
{thirdPartyStrategies.map((strategy, i) => (
<Fragment key={strategy.title}>
<StrategyRowCard {...strategy} />
{i !== thirdPartStrategies.length - 1 && <Divider key={`divider_${i}`} flexItem />}
{i !== thirdPartyStrategies.length - 1 && <Divider key={`divider_${i}`} flexItem />}
</Fragment>
))}
</Box>
Expand Down

0 comments on commit 685fcf8

Please sign in to comment.