thereturning
thereturning
KPCKevin Powell - Community
Created by thereturning on 8/19/2024 in #front-end
help with react context
i put <css transition><toltip><css> in another component, then i was able to use my usecontext hook
16 replies
KPCKevin Powell - Community
Created by thereturning on 8/19/2024 in #front-end
help with react context
I fixed it
16 replies
KPCKevin Powell - Community
Created by thereturning on 8/19/2024 in #front-end
help with react context
ill try moving the stuff inside of tooltipProvider into another component
16 replies
KPCKevin Powell - Community
Created by thereturning on 8/19/2024 in #front-end
help with react context
the custom hook just wrapped the useContext
16 replies
KPCKevin Powell - Community
Created by thereturning on 8/19/2024 in #front-end
help with react context
i think im not allowed to use useContext if its not inside of the provider
16 replies
KPCKevin Powell - Community
Created by thereturning on 8/19/2024 in #front-end
help with react context
so dont use null
16 replies
KPCKevin Powell - Community
Created by thereturning on 8/19/2024 in #front-end
help with react context
oh ok
16 replies
KPCKevin Powell - Community
Created by thereturning on 8/19/2024 in #front-end
help with react context
is there a way to use a usecontxt inside my csstransition in={}?
16 replies
KPCKevin Powell - Community
Created by thereturning on 8/19/2024 in #front-end
help with react context
Being used in home.jsx but there is this error at useTooltip() being undefined TypeError: Cannot destructure property 'tooltip' of 'useTooltip(...)' as it is undefined. at Home (Home.jsx:16:11)
import MessageContainer from "../../components/messages/MessageContainer";
import Serverbar from "../../components/serverbar/Serverbar";
import Servers from "../../components/serverbar/Servers";
import Tooltip from "../../components/serverbar/Tooltip";
import Sidebar from "../../components/sidebar/Sidebar";
import { CSSTransition } from "react-transition-group";
import { useState, useRef } from "react";
import {
TooltipProvider,
useTooltip,
} from "../../components/serverbar/TooltipContext";

const Home = () => {
const nodeRef = useRef(null);
console.log(TooltipProvider);
const { tooltip } = useTooltip(); ERROR UNDEFINED
return (
<div className="flex overflow-hidden">
<TooltipProvider>
<Serverbar />
<CSSTransition
in={tooltip.visible}
nodeRef={nodeRef}
timeout={75}
classNames="server-tooltip"
unmountOnExit
>
<Tooltip
ref={nodeRef}
name={tooltip.name}
position={tooltip.position}
/>
</CSSTransition>
</TooltipProvider>

<Sidebar />
<MessageContainer />
</div>
);
};
export default Home;
import MessageContainer from "../../components/messages/MessageContainer";
import Serverbar from "../../components/serverbar/Serverbar";
import Servers from "../../components/serverbar/Servers";
import Tooltip from "../../components/serverbar/Tooltip";
import Sidebar from "../../components/sidebar/Sidebar";
import { CSSTransition } from "react-transition-group";
import { useState, useRef } from "react";
import {
TooltipProvider,
useTooltip,
} from "../../components/serverbar/TooltipContext";

const Home = () => {
const nodeRef = useRef(null);
console.log(TooltipProvider);
const { tooltip } = useTooltip(); ERROR UNDEFINED
return (
<div className="flex overflow-hidden">
<TooltipProvider>
<Serverbar />
<CSSTransition
in={tooltip.visible}
nodeRef={nodeRef}
timeout={75}
classNames="server-tooltip"
unmountOnExit
>
<Tooltip
ref={nodeRef}
name={tooltip.name}
position={tooltip.position}
/>
</CSSTransition>
</TooltipProvider>

<Sidebar />
<MessageContainer />
</div>
);
};
export default Home;
16 replies
KPCKevin Powell - Community
Created by thereturning on 8/14/2024 in #front-end
how to style scrollbar with tailwind
if ur using daisyui, do this. this thing was overiding the webkit
* {
scrollbar-color: initial !important;
}
* {
scrollbar-color: initial !important;
}
7 replies
KPCKevin Powell - Community
Created by thereturning on 8/14/2024 in #front-end
how to style scrollbar with tailwind
/* conversations scrollbar */
.scrollbar-conversations::-webkit-scrollbar {
width: 8px;
}
.scrollbar-conversations::-webkit-scrollbar-thumb {
background: purple;
border-radius: 4px;
min-height: 40px;
background-clip: padding-box;
border: 2px solid transparent;
}
.scrollbar-conversations::-webkit-scrollbar-track {
background: transparent;
}
.scrollbar-conversations::-webkit-scrollbar-thumb {
visibility: hidden;
}
.scrollbar-conversations:hover::-webkit-scrollbar-thumb {
visibility: visible;
}
/* conversations scrollbar */
.scrollbar-conversations::-webkit-scrollbar {
width: 8px;
}
.scrollbar-conversations::-webkit-scrollbar-thumb {
background: purple;
border-radius: 4px;
min-height: 40px;
background-clip: padding-box;
border: 2px solid transparent;
}
.scrollbar-conversations::-webkit-scrollbar-track {
background: transparent;
}
.scrollbar-conversations::-webkit-scrollbar-thumb {
visibility: hidden;
}
.scrollbar-conversations:hover::-webkit-scrollbar-thumb {
visibility: visible;
}
7 replies
KPCKevin Powell - Community
Created by thereturning on 8/16/2024 in #front-end
my popup is being hidden
yea i didnt solve it yet so thank u guys
35 replies
KPCKevin Powell - Community
Created by thereturning on 8/16/2024 in #front-end
my popup is being hidden
wow sorry i havent replied i wen tto sleep
35 replies
KPCKevin Powell - Community
Created by thereturning on 8/16/2024 in #front-end
my popup is being hidden
ill figure it out thx guys
35 replies
KPCKevin Powell - Community
Created by thereturning on 8/16/2024 in #front-end
my popup is being hidden
how do i chekc if the server button is hovered if its out of the container
35 replies
KPCKevin Powell - Community
Created by thereturning on 8/16/2024 in #front-end
my popup is being hidden
oh
35 replies
KPCKevin Powell - Community
Created by thereturning on 8/16/2024 in #front-end
my popup is being hidden
am i doing the tooltip wrong
35 replies
KPCKevin Powell - Community
Created by thereturning on 8/16/2024 in #front-end
my popup is being hidden
it still the same
35 replies
KPCKevin Powell - Community
Created by thereturning on 8/16/2024 in #front-end
my popup is being hidden
like discord server list
35 replies
KPCKevin Powell - Community
Created by thereturning on 8/16/2024 in #front-end
my popup is being hidden
its supposed to be a scroll thing
35 replies