Skip to content

Commit

Permalink
WTF
Browse files Browse the repository at this point in the history
  • Loading branch information
napindc committed Jul 17, 2022
1 parent af0a4ae commit 06ef66e
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/components/WhitelistCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function WhitelistCard({
<p>{type.toUpperCase()}</p>


{/*TODO: ---- ADDED myLiveDAO to only show spots left*/}
{/* #391: ---- ADDED myLiveDAO to only show spots left*/}
{ myLiveDAO ?
isFcfs ?
(<>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function Login() {
<br/>

{/* REPEATED TWICE ON THIS PAGE - DIFFERING SCOPES */}
{/* TODO AJAY !!! - auto join discord BROKE */}
{/* TO.DO AJAY !!! - auto join discord BROKE */}
{/*Using Seamless and want it to auto join Discords for you? Login with the below button.*/}
{/*<IonButton className='mb-4 h-11' color={ mode === 'dark' ? '' : "dark"}*/}
{/* onClick={() => {*/}
Expand Down
8 changes: 4 additions & 4 deletions src/pages/bots/Seamless.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ const SeamlessDetail: React.FC<AppComponentProps> = () => {
return
}
setTimeout(() => {
setRowsPerPage(old=>old+6)
}, 2000);
}
setRowsPerPage(old=>old+12)
}, 100);
}


return (
Expand Down Expand Up @@ -130,7 +130,7 @@ const SeamlessDetail: React.FC<AppComponentProps> = () => {
{!multipleflag &&

<></>
// TODO: ruchita !!! MULTI SELECT BROKE : messed up with no bot
// TO.DO: ruchita !!! MULTI SELECT BROKE : messed up with no bot
// <div className={`seamless-tab-btn-active-colored w-40 h-10`} onClick={()=> {
// setmultipleflag((n)=>!n);
//
Expand Down
28 changes: 18 additions & 10 deletions src/pages/bots/SeamlessDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { whiteListFormField } from './service/whiteListModalType';
*/

const SeamlessDetail: React.FC<AppComponentProps> = () => {
// TODO: I guess you are using 13.5 font size. I would say it is little big. I would prefer 10.5
const server:any = useLocation();
// new mint / source server --- comes from params
const { serverId } = useParams<any>();
Expand Down Expand Up @@ -75,15 +74,25 @@ const SeamlessDetail: React.FC<AppComponentProps> = () => {
const getLastPartnership = async() =>{
await getLastWhitelistPartnerShip(serverArray).then((response:any)=>{
if(response.data){
let lastData = {...response.data[response.data.length-1]}
delete lastData.id;
delete lastData.required_role_name;
delete lastData.required_role;
delete lastData.expiration_date;
delete lastData.max_users;
// delete lastData.type;

setFormField({...lastData,imagePath:lastData.image})
for(let i in response.data){

if(response.data[i].sourceServer.discordGuildId === serverId){
let lastData = {...response.data[i]};

delete lastData.id;
delete lastData.required_role_name;
delete lastData.required_role;
delete lastData.expiration_date;
delete lastData.max_users;
// delete lastData.type;

setFormField({...lastData,imagePath:lastData.image})

break;
}
}

}
})
}
Expand Down Expand Up @@ -288,7 +297,6 @@ const SeamlessDetail: React.FC<AppComponentProps> = () => {
{/* magicEden Linik */}
<WhiteListFormField fieldLable={'Magic Eden drops URL'} fieldName={'magicEdenUpvoteUrl'} control={control} classes='mb-5' />
{/* Mint Date */}
{/*TODO-freelance: can't get this to be optional ... dates still messed up for me (choose 11th, shows 10th) */}
{/*<WhiteListFormField fieldLable={'Mint Date'} fieldName={'mintDate'} control={control} setValue={setValue} />*/}
{/* mint supply */}
<WhiteListFormField fieldLable={'Mint Supply'} fieldName={'mintSupply'} control={control} classes='mb-5' />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/bots/ServerModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ const [serverName, setServerName] = useState('')
</IonButton>
</div>

{/*TODO: !!! EDIT DELETE BROKE - ruchita all bugged*/}
{/* TO.DO: !!! EDIT DELETE BROKE - ruchita all bugged */}
{/*<div className={`mt-3 mb-3 flex ${isMobile ? '' : 'ml-3'}`}>*/}
{/* <IonButton className="text-base" css={css`*/}
{/* --padding-top: 25px;*/}
Expand Down
14 changes: 6 additions & 8 deletions src/pages/bots/WhitelistMarketplace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,20 +175,19 @@ function WhitelistMarketplace() {

// 5 second after hide exploding
useEffect(() => {
isExploding&&setTimeout(() => {
setIsExploding(false)
}, 1000);

}, [isExploding])
isExploding&&setTimeout(() => {
setIsExploding(false)
}, 5000);
}, [isExploding]);

let fetchMoreData=(state:any)=>{
if(state.slice(0,rowsPerPage).length>=state.length){
setHasMore(false)
return
}
setTimeout(() => {
setRowsPerPage(old=>old+8)
}, 2000);
setRowsPerPage(old=>old+12)
}, 100);
}


Expand Down Expand Up @@ -282,7 +281,6 @@ function WhitelistMarketplace() {
</div>

{/* expire */}
{/*TODO: bugged*/}
{/*{isTabButton === 'expire' || isTabButton === 'myClaim' ?*/}
{/* <div className='flex justify-center mt-4'>*/}
{/* <div className={`${isTabButton === 'myClaim' ? 'seamless-tab-btn-active-colored' : 'seamless-tab-btn-deactive'} ml-2 w-60 h-10 text-xl `} onClick={()=>setIsTabButton('myClaim')}>*/}
Expand Down
1 change: 0 additions & 1 deletion src/pages/bots/components/WhiteListFormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ let FieldContainer = (props:containerProps) =>{
}}
name={name} value={value} onIonBlur={onBlur} ref={ref} >
<IonSelectOption value="fcfs"> FCFS </IonSelectOption>
{/*TODO @@@@@@ : isDev -- ---- BazingaHeHe#5460 */}
{/*<IonSelectOption value="raffle"> Raffle </IonSelectOption>*/}
</IonSelect>
)
Expand Down
3 changes: 1 addition & 2 deletions src/pages/home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const Home: React.FC<AppComponentProps> = ({contentRef}) => {
{/*Recent FF Named Stuff*/}
<FfNamed/>

{/* TODO !!!!!!!!!!! top words */}
{/* Top search words of past day */}
{/*<TopSearchWords/>*/}

Expand Down Expand Up @@ -107,7 +106,7 @@ const Home: React.FC<AppComponentProps> = ({contentRef}) => {
<div className='flex flex-row w-full'>
<div className='w-1/2 '>
{/* Top search words of past day */}
{/* TODO !!!!!!!!!!! top words */}
{/* TODO !!!!!!!!!!! top words (TopSearchWords x2 on the page) */}
{/* <TopSearchWords/>*/}
</div>
<div className='w-1/2'>
Expand Down

0 comments on commit 06ef66e

Please sign in to comment.