Skip to content

Commit

Permalink
Revert "feat(ui): sos main leaderboard + crew modal ui (#1206)"
Browse files Browse the repository at this point in the history
This reverts commit d365ddd.
  • Loading branch information
brianp committed Dec 19, 2024
1 parent e78cb33 commit 95edfd1
Show file tree
Hide file tree
Showing 60 changed files with 144 additions and 2,675 deletions.
40 changes: 1 addition & 39 deletions public/locales/en/sos.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,5 @@
"linkCopied": "Link copied!",
"growCrew": "grow your crew"
}
},
"superCharger": {
"title": "Super Charger",
"placeholder": "Enter Your Code",
"success": "Time bonus added {{time}}.",
"error": "Invalid code.",
"submit": "Go"
},
"mainTimer": {
"title": "Your Timer",
"days": "DAYS",
"hours": "HOURS",
"minutes": "MINUTES",
"seconds": "SECONDS"
},
"progress": {
"message": "You’re <span>{{hours}} hours</span> away from the next rank. Keep mining!"
},
"leaserboardEntry": {
"mining": "Mining now",
"idle": "Last mined {{time}} ago"
},
"leaderboard": {
"title": "Leaderboard",
"viewFull": "VIEW full LEADERBOARD"
},
"member": {
"new": "New",
"nudge": "Nudge",
"minHr": "min/hr"
},
"crewMining": {
"title": "Crew mining",
"rate": "+{{rate}}min/hr",
"mining": "{{current}}/{{total}} Mining"
},
"crewList": {
"placeholder": "Invite your first crew member"
}
}
}
6 changes: 1 addition & 5 deletions src/components/AdminUI/groups/OtherUIGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import { useAirdropStore } from '@app/store/useAirdropStore.ts';
export function OtherUIGroup() {
const setAdminShow = useUIStore((s) => s.setAdminShow); // prevent messing up the actual setup progress value
const adminShow = useUIStore((s) => s.adminShow);
const { showWidget, setShowWidget, showMainModal, setShowMainModal } = useShellOfSecretsStore();
const { showWidget, setShowWidget } = useShellOfSecretsStore();
const setFlare = useAirdropStore((s) => s.setFlareAnimationType);

return (
<>
<CategoryLabel>Other UI</CategoryLabel>
Expand All @@ -20,9 +19,6 @@ export function OtherUIGroup() {
<Button onClick={() => setShowWidget(!showWidget)} $isActive={showWidget}>
SoS Widget
</Button>
<Button onClick={() => setShowMainModal(!showMainModal)} $isActive={showMainModal}>
SoS Main Modal
</Button>
<Button
onClick={() => setAdminShow(adminShow === 'orphanChainWarning' ? null : 'orphanChainWarning')}
$isActive={adminShow === 'orphanChainWarning'}
Expand Down
4 changes: 1 addition & 3 deletions src/containers/main/ShellOfSecrets/ShellOfSecrets.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import SoSWidget from './SoSWidget/SoSWidget';
import { useShellOfSecretsStore } from '../../../store/useShellOfSecretsStore';
import { AnimatePresence } from 'framer-motion';
import SoSMainModal from './SoSMainModal/SoSMainModal';

export default function ShellOfSecrets() {
const { showWidget, showMainModal } = useShellOfSecretsStore();
const { showWidget } = useShellOfSecretsStore();

return (
<>
<AnimatePresence>{showWidget && <SoSWidget />}</AnimatePresence>
<AnimatePresence>{showMainModal && <SoSMainModal />}</AnimatePresence>
</>
);
}
35 changes: 0 additions & 35 deletions src/containers/main/ShellOfSecrets/SoSMainModal/SoSMainModal.tsx

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 95edfd1

Please sign in to comment.