Skip to content

Commit

Permalink
table components scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
masvelio committed Dec 20, 2024
1 parent 1addc24 commit fdb6b22
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
import { PageNotFound } from '../404';
import RewardsTab from './RewardsTab';
import { QuestCard, RefferalCard, WalletCard } from './cards';
import { QuestTable, ReferralTable, WalletTable } from './tables';
import {
MobileTabType,
TableType,
Expand Down Expand Up @@ -98,11 +99,9 @@ const RewardsPage = () => {
</CWTabsRow>
</div>

{tableTab === TableType.Referrals && <div>Referrals table</div>}
{tableTab === TableType.TokenTXHistory && (
<div>TokenTXHistory table</div>
)}
{tableTab === TableType.XPEarnings && <div>XPEarnings table</div>}
{tableTab === TableType.Referrals && <ReferralTable />}
{tableTab === TableType.TokenTXHistory && <QuestTable />}
{tableTab === TableType.XPEarnings && <WalletTable />}
</section>
</CWPageLayout>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.QuestTable {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';

import './QuestTable.scss';

export const QuestTable = () => {
return <div className="QuestTable">Quest Table</div>;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './QuestTable';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.ReferralTable {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';

import './ReferralTable.scss';

export const ReferralTable = () => {
return <div className="ReferralTable">Referral Table</div>;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './ReferralTable';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.WalletTable {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';

import './WalletTable.scss';

export const WalletTable = () => {
return <div className="WalletTable">Wallet Table</div>;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './WalletTable';
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { QuestTable } from './QuestTable';
import { ReferralTable } from './ReferralTable';
import { WalletTable } from './WalletTable';

export { QuestTable, ReferralTable, WalletTable };

0 comments on commit fdb6b22

Please sign in to comment.