Skip to content

Commit

Permalink
⚡️ :: (#28) add defalut gates
Browse files Browse the repository at this point in the history
  • Loading branch information
KJG04 committed Jan 25, 2022
1 parent 8ae919b commit de220e9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion functions/src/components/Providers/GateContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@ import uniqueId from "../../constance/UniqueId";
import { Dot, Gate, GateContext, GateContextType, Node, Point } from "../../context/GateContext";

const GateContextProvider: FC = ({ children }) => {
const [gates, setGates] = useState<Gate[]>([]);
const [gates, setGates] = useState<Gate[]>([
{
id: uniqueId(),
position: [100, 100],
type: "and",
},
{
id: uniqueId(),
position: [200, 200],
type: "and",
},
]);
const [nodes, setNodes] = useState<Node[]>([]);

const getDotById = useCallback(
Expand Down

0 comments on commit de220e9

Please sign in to comment.