mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 08:24:27 +00:00
Split large contexts
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Modal, Input } from '@geist-ui/core';
|
||||
import { useGitOperationsContext } from '../../contexts/GitOperationsContext';
|
||||
import { useUIStateContext } from '../../contexts/UIStateContext';
|
||||
import { useModalContext } from '../../contexts/ModalContext';
|
||||
|
||||
const CommitMessageModal = () => {
|
||||
const [message, setMessage] = useState('');
|
||||
const { handleCommitAndPush } = useGitOperationsContext();
|
||||
const { commitMessageModalVisible, setCommitMessageModalVisible } =
|
||||
useUIStateContext();
|
||||
useModalContext();
|
||||
|
||||
const handleSubmit = async () => {
|
||||
if (message) {
|
||||
|
||||
Reference in New Issue
Block a user