Skip to content

Commit

Permalink
fix: memo in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavgeek committed Nov 9, 2024
1 parent 0d325d2 commit 9c8cdd3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/pages/memo/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import About from './About'
import Team from './Team'
import Funding from './Funding'
export const Tabs = () => {
const [activeTab, setActiveTab] = useState('Profile')
const [activeTab, setActiveTab] = useState('Updates')

const renderContent = () => {
switch (activeTab) {
case 'Profile':
case 'Updates':
return <KleoNewsfeed />
case 'Dashboard':
case 'About':
return <About />
case 'Settings':
case 'Team':
return <Team />
case 'Invoice':
case 'Funding':
return <Funding />
default:
return null
Expand All @@ -34,10 +34,10 @@ export const Tabs = () => {
value={activeTab}
onChange={(e) => setActiveTab(e.target.value)}
>
<option>Profile</option>
<option>Dashboard</option>
<option>Settings</option>
<option>Invoice</option>
<option>Updates</option>
<option>About</option>
<option>Team</option>
<option>Funding</option>
</select>
</div>

Expand All @@ -46,7 +46,7 @@ export const Tabs = () => {
<li className="w-full focus-within:z-10">
<a
href="#"
onClick={() => setActiveTab('Profile')}
onClick={() => setActiveTab('Updates')}
className={`inline-block w-full p-4 text-lg ${
activeTab === 'Profile' ? 'bg-grayblue-200' : 'bg-grayblue-100'
} border-grayblue-100 rounded-s-lg hover:bg-grayblue-300`}
Expand All @@ -57,9 +57,9 @@ export const Tabs = () => {
<li className="w-full focus-within:z-10">
<a
href="#"
onClick={() => setActiveTab('Dashboard')}
onClick={() => setActiveTab('About')}
className={`inline-block w-full p-4 text-lg ${
activeTab === 'Dashboard' ? 'bg-grayblue-200' : 'bg-grayblue-100'
activeTab === 'About' ? 'bg-grayblue-200' : 'bg-grayblue-100'
} border-grayblue-100 hover:bg-grayblue-300`}
>
About
Expand All @@ -68,9 +68,9 @@ export const Tabs = () => {
<li className="w-full focus-within:z-10">
<a
href="#"
onClick={() => setActiveTab('Settings')}
onClick={() => setActiveTab('Team')}
className={`inline-block w-full p-4 text-lg ${
activeTab === 'Settings' ? 'bg-grayblue-200' : 'bg-grayblue-100'
activeTab === 'Team' ? 'bg-grayblue-200' : 'bg-grayblue-100'
} border-grayblue-100 hover:bg-grayblue-300`}
>
Team
Expand All @@ -79,9 +79,9 @@ export const Tabs = () => {
<li className="w-full focus-within:z-10">
<a
href="#"
onClick={() => setActiveTab('Invoice')}
onClick={() => setActiveTab('Funding')}
className={`inline-block w-full p-4 text-lg ${
activeTab === 'Invoice' ? 'bg-grayblue-200' : 'bg-grayblue-100'
activeTab === 'Funding' ? 'bg-grayblue-200' : 'bg-grayblue-100'
} border-grayblue-100 rounded-e-lg hover:bg-grayblue-300`}
>
Treasury
Expand Down
7 changes: 7 additions & 0 deletions src/shared/navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ const Navbar = () => {
>
Home
</a>
<a
className="block hover:underline pointer-events-auto"
href="/memo"
target="_blank"
>
Memo
</a>
<a
className="block hover:underline pointer-events-auto"
href="https://docs.kleo.network/"
Expand Down

0 comments on commit 9c8cdd3

Please sign in to comment.