DetailsPanel: rename InfoPanel -> DetailsPanel
This commit is contained in:
@@ -47,7 +47,7 @@ interface InfoPanelProps {
|
|||||||
Icon: Icon;
|
Icon: Icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
const InfoPanel: React.FC<InfoPanelProps> = (props) => {
|
const DetailsPanel: React.FC<InfoPanelProps> = (props) => {
|
||||||
const { index, spans, isDark, name, Icon } = props;
|
const { index, spans, isDark, name, Icon } = props;
|
||||||
const weight = useRecoilValue(iconWeightAtom);
|
const weight = useRecoilValue(iconWeightAtom);
|
||||||
const size = useRecoilValue(iconSizeAtom);
|
const size = useRecoilValue(iconSizeAtom);
|
||||||
@@ -239,4 +239,4 @@ const InfoPanel: React.FC<InfoPanelProps> = (props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default InfoPanel;
|
export default DetailsPanel;
|
||||||
@@ -9,7 +9,7 @@ import { motion, AnimatePresence } from "framer-motion";
|
|||||||
import { IconProps, Icon } from "phosphor-react";
|
import { IconProps, Icon } from "phosphor-react";
|
||||||
|
|
||||||
import { iconPreviewOpenAtom } from "../../state/atoms";
|
import { iconPreviewOpenAtom } from "../../state/atoms";
|
||||||
import InfoPanel from "./InfoPanel";
|
import DetailsPanel from "./DetailsPanel";
|
||||||
|
|
||||||
interface IconGridItemProps extends IconProps {
|
interface IconGridItemProps extends IconProps {
|
||||||
index: number;
|
index: number;
|
||||||
@@ -87,7 +87,7 @@ const IconGridItem: React.FC<IconGridItemProps> = (props) => {
|
|||||||
<p>{name}</p>
|
<p>{name}</p>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
<AnimatePresence initial={false}>
|
<AnimatePresence initial={false}>
|
||||||
{isOpen && <InfoPanel {...props} />}
|
{isOpen && <DetailsPanel {...props} />}
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user