All files / components/Settings SlackCourseSettings.jsx

100% Statements 1/1
100% Branches 1/1
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26                    39x                              
import React from "react";
import SlackSetupInstructions from "main/components/Settings/SlackSetupInstructions";
import SlackTokenForm from "main/components/Settings/SlackTokenForm";
 
export default function SlackCourseSettings({
  courseId,
  submitAction,
  errorMessage,
  testIdPrefix = "SlackCourseSettings",
}) {
  return (
    <div className="card mt-4" data-testid={`${testIdPrefix}-slackForm`}>
      <div className="card-body">
        <h5 className="card-title">Slack Integration Settings</h5>
        <SlackSetupInstructions testIdPrefix={`${testIdPrefix}-slack`} />
        <SlackTokenForm
          submitAction={submitAction}
          courseId={courseId}
          errorMessage={errorMessage}
          testIdPrefix={`${testIdPrefix}-slack`}
        />
      </div>
    </div>
  );
}