Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ebgranger committed Nov 8, 2024
1 parent 0178cd2 commit 84e0e27
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ export default function Icons({ data }) {
const [ExampleToCopy, setExampleToCopy] = useState(null);
const [Name, setName] = useState("");
const [Filter, setFilter] = useState([]);

useEffect(() => {
console.log("poop", Name);

if (ExampleToCopy) {
window.navigator.clipboard.writeText(ExampleToCopy);
const SuccessToast = () => {
Expand Down Expand Up @@ -55,6 +57,8 @@ export default function Icons({ data }) {
}, [ExampleToCopy, Name]);

function setVariables(example, Name) {
console.log("poop", Name);

setName(Name);
setExampleToCopy(example);
}
Expand All @@ -78,12 +82,17 @@ export default function Icons({ data }) {
}

return list.map((Asset, i) => {

console.log("boop", Asset);
const Sample = AllAssets[Asset];

if (!Sample) {
return;
}
const componentName = paramCase(Asset);

console.log("bonk", componentName);

const importExample = `import { ${Asset} } from "@washingtonpost/wpds-assets";`;

return (
Expand Down

0 comments on commit 84e0e27

Please sign in to comment.