Skip to content

Commit

Permalink
fix: remove old code hiding first step when egg is blank
Browse files Browse the repository at this point in the history
  • Loading branch information
thewander02 committed May 24, 2024
1 parent 9e82b06 commit ac7d8e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/components/server/shell/ShellContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const ShellContainer = () => {

updateVarsData();

const [step, setStep] = useState(steps[0] && currentEgg === blankEggId ? 1 : 0);
const [step, setStep] = useState(0);
const [modalVisible, setModalVisible] = useState(false);
const [visible, setVisible] = useState(false);

Expand Down Expand Up @@ -290,7 +290,7 @@ const ShellContainer = () => {
<div className='relative rounded-xl shadow-md border-[1px] border-[#ffffff07] bg-[#ffffff08] lg:h-[73svh]'>
<div className='w-full h-full'>
<div className='flex items-center justify-between p-4 pr-5 mb-2'>
{steps.map((cstep, index) => index <= 0 && currentEgg === blankEggId ? null : (
{steps.map((cstep, index) => (
<div key={cstep.slug}>
<div className='flex items-center gap-2' onClick={() => setStep(index)} style={{ cursor: 'pointer' }}>
<div className={`${index < step+1 ? 'border-[radial-gradient(circle_at_center,_var(--tw-gradient-stops))] from-[#FF343C] to-[#F06F53] text-brand' : 'border-[#ffffff20] text-[#ffffff20]'} border-[2px] rounded-full p-1 w-8 h-8 text-sm font-bold shadow-md hover:shadow-lg items-center text-center`}>
Expand Down

0 comments on commit ac7d8e4

Please sign in to comment.